pub enum MaterialDynamicColorError {
InvalidContrast(f64),
InvalidHueOrChroma {
hue: f64,
chroma: f64,
},
InvalidTone(u8),
DuplicateTone(u8),
MissingTone {
palette: MaterialPaletteFamily,
tone: u8,
},
MissingSystemRole(MaterialColorRole),
}Expand description
A failed import identifies the exact missing tone or role; it never substitutes an unrelated color or interpolates missing platform tones in RGB.
Variants§
InvalidContrast(f64)
InvalidHueOrChroma
InvalidTone(u8)
DuplicateTone(u8)
MissingTone
MissingSystemRole(MaterialColorRole)
Trait Implementations§
Source§impl Clone for MaterialDynamicColorError
impl Clone for MaterialDynamicColorError
Source§impl Debug for MaterialDynamicColorError
impl Debug for MaterialDynamicColorError
Source§impl Display for MaterialDynamicColorError
impl Display for MaterialDynamicColorError
Source§impl Error for MaterialDynamicColorError
impl Error for MaterialDynamicColorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MaterialDynamicColorError> for MaterialAndroidColorError
impl From<MaterialDynamicColorError> for MaterialAndroidColorError
Source§fn from(value: MaterialDynamicColorError) -> Self
fn from(value: MaterialDynamicColorError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for MaterialDynamicColorError
Auto Trait Implementations§
impl Freeze for MaterialDynamicColorError
impl RefUnwindSafe for MaterialDynamicColorError
impl Send for MaterialDynamicColorError
impl Sync for MaterialDynamicColorError
impl Unpin for MaterialDynamicColorError
impl UnsafeUnpin for MaterialDynamicColorError
impl UnwindSafe for MaterialDynamicColorError
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more