pub enum ColorRole {
Show 49 variants
Background,
Error,
ErrorContainer,
InverseOnSurface,
InversePrimary,
InverseSurface,
OnBackground,
OnError,
OnErrorContainer,
OnPrimary,
OnPrimaryContainer,
OnPrimaryFixed,
OnPrimaryFixedVariant,
OnSecondary,
OnSecondaryContainer,
OnSecondaryFixed,
OnSecondaryFixedVariant,
OnSurface,
OnSurfaceVariant,
OnTertiary,
OnTertiaryContainer,
OnTertiaryFixed,
OnTertiaryFixedVariant,
Outline,
OutlineVariant,
Primary,
PrimaryContainer,
PrimaryFixed,
PrimaryFixedDim,
Scrim,
Secondary,
SecondaryContainer,
SecondaryFixed,
SecondaryFixedDim,
Shadow,
Surface,
SurfaceBright,
SurfaceContainer,
SurfaceContainerHigh,
SurfaceContainerHighest,
SurfaceContainerLow,
SurfaceContainerLowest,
SurfaceDim,
SurfaceTint,
SurfaceVariant,
Tertiary,
TertiaryContainer,
TertiaryFixed,
TertiaryFixedDim,
}Expand description
Semantic Material color roles.
Variants§
Background
Error
ErrorContainer
InverseOnSurface
InversePrimary
InverseSurface
OnBackground
OnError
OnErrorContainer
OnPrimary
OnPrimaryContainer
OnPrimaryFixed
OnPrimaryFixedVariant
OnSecondary
OnSecondaryContainer
OnSecondaryFixed
OnSecondaryFixedVariant
OnSurface
OnSurfaceVariant
OnTertiary
OnTertiaryContainer
OnTertiaryFixed
OnTertiaryFixedVariant
Outline
OutlineVariant
Primary
PrimaryContainer
PrimaryFixed
PrimaryFixedDim
Scrim
Secondary
SecondaryContainer
SecondaryFixed
SecondaryFixedDim
Shadow
Surface
SurfaceBright
SurfaceContainer
SurfaceContainerHigh
SurfaceContainerHighest
SurfaceContainerLow
SurfaceContainerLowest
SurfaceDim
SurfaceTint
SurfaceVariant
Tertiary
TertiaryContainer
TertiaryFixed
TertiaryFixedDim
Implementations§
Trait Implementations§
impl Copy for ColorRole
impl Eq for ColorRole
Source§impl Ord for ColorRole
impl Ord for ColorRole
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ColorRole
impl PartialOrd for ColorRole
impl StructuralPartialEq for ColorRole
Auto Trait Implementations§
impl Forget for ColorRole
impl Freeze for ColorRole
impl Move for ColorRole
impl RefUnwindSafe for ColorRole
impl Send for ColorRole
impl Sync for ColorRole
impl Unpin for ColorRole
impl UnsafeUnpin for ColorRole
impl UnwindSafe for ColorRole
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