Skip to main content

Scheme

Struct Scheme 

Source
pub struct Scheme {
Show 49 fields pub primary: Argb, pub on_primary: Argb, pub primary_container: Argb, pub on_primary_container: Argb, pub inverse_primary: Argb, pub primary_fixed: Argb, pub primary_fixed_dim: Argb, pub on_primary_fixed: Argb, pub on_primary_fixed_variant: Argb, pub secondary: Argb, pub on_secondary: Argb, pub secondary_container: Argb, pub on_secondary_container: Argb, pub secondary_fixed: Argb, pub secondary_fixed_dim: Argb, pub on_secondary_fixed: Argb, pub on_secondary_fixed_variant: Argb, pub tertiary: Argb, pub on_tertiary: Argb, pub tertiary_container: Argb, pub on_tertiary_container: Argb, pub tertiary_fixed: Argb, pub tertiary_fixed_dim: Argb, pub on_tertiary_fixed: Argb, pub on_tertiary_fixed_variant: Argb, pub error: Argb, pub on_error: Argb, pub error_container: Argb, pub on_error_container: Argb, pub surface_dim: Argb, pub surface: Argb, pub surface_tint: Argb, pub surface_bright: Argb, pub surface_container_lowest: Argb, pub surface_container_low: Argb, pub surface_container: Argb, pub surface_container_high: Argb, pub surface_container_highest: Argb, pub on_surface: Argb, pub on_surface_variant: Argb, pub outline: Argb, pub outline_variant: Argb, pub inverse_surface: Argb, pub inverse_on_surface: Argb, pub surface_variant: Argb, pub background: Argb, pub on_background: Argb, pub shadow: Argb, pub scrim: Argb,
}

Fields§

§primary: Argb§on_primary: Argb§primary_container: Argb§on_primary_container: Argb§inverse_primary: Argb§primary_fixed: Argb§primary_fixed_dim: Argb§on_primary_fixed: Argb§on_primary_fixed_variant: Argb§secondary: Argb§on_secondary: Argb§secondary_container: Argb§on_secondary_container: Argb§secondary_fixed: Argb§secondary_fixed_dim: Argb§on_secondary_fixed: Argb§on_secondary_fixed_variant: Argb§tertiary: Argb§on_tertiary: Argb§tertiary_container: Argb§on_tertiary_container: Argb§tertiary_fixed: Argb§tertiary_fixed_dim: Argb§on_tertiary_fixed: Argb§on_tertiary_fixed_variant: Argb§error: Argb§on_error: Argb§error_container: Argb§on_error_container: Argb§surface_dim: Argb§surface: Argb§surface_tint: Argb§surface_bright: Argb§surface_container_lowest: Argb§surface_container_low: Argb§surface_container: Argb§surface_container_high: Argb§surface_container_highest: Argb§on_surface: Argb§on_surface_variant: Argb§outline: Argb§outline_variant: Argb§inverse_surface: Argb§inverse_on_surface: Argb§surface_variant: Argb§background: Argb§on_background: Argb§shadow: Argb§scrim: Argb

Implementations§

Source§

impl Scheme

Source

pub const fn new( primary: Argb, on_primary: Argb, primary_container: Argb, on_primary_container: Argb, inverse_primary: Argb, primary_fixed: Argb, primary_fixed_dim: Argb, on_primary_fixed: Argb, on_primary_fixed_variant: Argb, secondary: Argb, on_secondary: Argb, secondary_container: Argb, on_secondary_container: Argb, secondary_fixed: Argb, secondary_fixed_dim: Argb, on_secondary_fixed: Argb, on_secondary_fixed_variant: Argb, tertiary: Argb, on_tertiary: Argb, tertiary_container: Argb, on_tertiary_container: Argb, tertiary_fixed: Argb, tertiary_fixed_dim: Argb, on_tertiary_fixed: Argb, on_tertiary_fixed_variant: Argb, error: Argb, on_error: Argb, error_container: Argb, on_error_container: Argb, surface_dim: Argb, surface: Argb, surface_tint: Argb, surface_bright: Argb, surface_container_lowest: Argb, surface_container_low: Argb, surface_container: Argb, surface_container_high: Argb, surface_container_highest: Argb, on_surface: Argb, on_surface_variant: Argb, outline: Argb, outline_variant: Argb, inverse_surface: Argb, inverse_on_surface: Argb, surface_variant: Argb, background: Argb, on_background: Argb, shadow: Argb, scrim: Argb, ) -> Self

Trait Implementations§

Source§

impl Debug for Scheme

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Scheme

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Scheme

Source§

impl From<DynamicScheme> for Scheme

Source§

fn from(scheme: DynamicScheme) -> Self

Converts to this type from the input type.
Source§

impl From<Scheme> for HashMap<String, String>

Source§

fn from(value: Scheme) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for Scheme

Source§

type Item = (String, Argb)

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<(String, Argb), 49>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl PartialEq for Scheme

Source§

fn eq(&self, other: &Scheme) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Scheme> for SchemeFromPalette

Source§

fn eq(&self, other: &Scheme) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Scheme

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Scheme

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.