pub struct NonAccentedPalette {
pub c50: Color,
pub c100: Color,
pub c200: Color,
pub c300: Color,
pub c400: Color,
pub c500: Color,
pub c600: Color,
pub c700: Color,
pub c800: Color,
pub c900: Color,
}
Expand description
A palette of colors for use in Material design without accent colors
This is a collection of colors that are used in Material design. They consist of a set of colors from 50 to 900.
Fields§
§c50: Color
§c100: Color
§c200: Color
§c300: Color
§c400: Color
§c500: Color
§c600: Color
§c700: Color
§c800: Color
§c900: Color
Implementations§
Source§impl NonAccentedPalette
impl NonAccentedPalette
Sourcepub const fn from_variants(variants: [u32; 10]) -> Self
pub const fn from_variants(variants: [u32; 10]) -> Self
Create a new NonAccented
from the given variants
The variants should be in the format [0x00RRGGBB, …]
Trait Implementations§
Source§impl Clone for NonAccentedPalette
impl Clone for NonAccentedPalette
Source§fn clone(&self) -> NonAccentedPalette
fn clone(&self) -> NonAccentedPalette
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NonAccentedPalette
impl Debug for NonAccentedPalette
Source§impl Hash for NonAccentedPalette
impl Hash for NonAccentedPalette
Source§impl PartialEq for NonAccentedPalette
impl PartialEq for NonAccentedPalette
impl Copy for NonAccentedPalette
impl Eq for NonAccentedPalette
impl StructuralPartialEq for NonAccentedPalette
Auto Trait Implementations§
impl Freeze for NonAccentedPalette
impl RefUnwindSafe for NonAccentedPalette
impl Send for NonAccentedPalette
impl Sync for NonAccentedPalette
impl Unpin for NonAccentedPalette
impl UnwindSafe for NonAccentedPalette
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more