pub struct AccentedPalette {}Expand description
A palette of colors for use in Material design with 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, and a set of accent colors from 100 to 700.
Fields§
§c50: Color§c100: Color§c200: Color§c300: Color§c400: Color§c500: Color§c600: Color§c700: Color§c800: Color§c900: Color§a100: Color§a200: Color§a400: Color§a700: ColorImplementations§
Source§impl AccentedPalette
impl AccentedPalette
Sourcepub const fn from_variants(variants: [u32; 14]) -> Self
pub const fn from_variants(variants: [u32; 14]) -> Self
Create a new AccentedPalette from the given variants
The variants should be in the format [0x00RRGGBB, …]
Trait Implementations§
Source§impl Clone for AccentedPalette
impl Clone for AccentedPalette
Source§fn clone(&self) -> AccentedPalette
fn clone(&self) -> AccentedPalette
Returns a duplicate 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 AccentedPalette
impl Debug for AccentedPalette
Source§impl Hash for AccentedPalette
impl Hash for AccentedPalette
Source§impl PartialEq for AccentedPalette
impl PartialEq for AccentedPalette
impl Copy for AccentedPalette
impl Eq for AccentedPalette
impl StructuralPartialEq for AccentedPalette
Auto Trait Implementations§
impl Freeze for AccentedPalette
impl RefUnwindSafe for AccentedPalette
impl Send for AccentedPalette
impl Sync for AccentedPalette
impl Unpin for AccentedPalette
impl UnwindSafe for AccentedPalette
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