pub enum MaterialColorSpec {
Spec2021,
Spec2025,
Spec2026,
}Expand description
Source-spec selection for locally generated phone schemes. The default is
exactly Google’s DynamicScheme.DEFAULT_SPEC_VERSION at the pinned commit.
This never changes imported Android colors or the AndroidX baseline schemes.
Variants§
Implementations§
Source§impl MaterialColorSpec
impl MaterialColorSpec
Sourcepub const fn effective_for(self, style: MaterialPaletteStyle) -> Self
pub const fn effective_for(self, style: MaterialPaletteStyle) -> Self
Apply Google’s supported-variant fallback. The 2026 spec introduces a separate CMF multi-source variant, which this single-seed API does not expose. For these nine phone styles its results are identical to 2025.
Trait Implementations§
Source§impl Clone for MaterialColorSpec
impl Clone for MaterialColorSpec
impl Copy for MaterialColorSpec
Source§impl Debug for MaterialColorSpec
impl Debug for MaterialColorSpec
Source§impl Default for MaterialColorSpec
impl Default for MaterialColorSpec
impl Eq for MaterialColorSpec
Source§impl Hash for MaterialColorSpec
impl Hash for MaterialColorSpec
Source§impl PartialEq for MaterialColorSpec
impl PartialEq for MaterialColorSpec
impl StructuralPartialEq for MaterialColorSpec
Auto Trait Implementations§
impl Freeze for MaterialColorSpec
impl RefUnwindSafe for MaterialColorSpec
impl Send for MaterialColorSpec
impl Sync for MaterialColorSpec
impl Unpin for MaterialColorSpec
impl UnsafeUnpin for MaterialColorSpec
impl UnwindSafe for MaterialColorSpec
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 moreSource§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§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.