Skip to main content

ColorPaletteArgs

Struct ColorPaletteArgs 

Source
pub struct ColorPaletteArgs<'a> {
Show 21 fields pub primary: Option<&'a Color>, pub primary_foreground: Option<&'a Color>, pub secondary: Option<&'a Color>, pub secondary_foreground: Option<&'a Color>, pub accent: Option<&'a Color>, pub accent_foreground: Option<&'a Color>, pub background: Option<&'a Color>, pub foreground: Option<&'a Color>, pub surface: Option<&'a Color>, pub surface_foreground: Option<&'a Color>, pub muted: Option<&'a Color>, pub muted_foreground: Option<&'a Color>, pub border_color: Option<&'a Color>, pub error: Option<&'a Color>, pub error_foreground: Option<&'a Color>, pub success: Option<&'a Color>, pub success_foreground: Option<&'a Color>, pub warning: Option<&'a Color>, pub warning_foreground: Option<&'a Color>, pub info: Option<&'a Color>, pub info_foreground: Option<&'a Color>,
}

Fields§

§primary: Option<&'a Color>§primary_foreground: Option<&'a Color>§secondary: Option<&'a Color>§secondary_foreground: Option<&'a Color>§accent: Option<&'a Color>§accent_foreground: Option<&'a Color>§background: Option<&'a Color>§foreground: Option<&'a Color>§surface: Option<&'a Color>§surface_foreground: Option<&'a Color>§muted: Option<&'a Color>§muted_foreground: Option<&'a Color>§border_color: Option<&'a Color>§error: Option<&'a Color>§error_foreground: Option<&'a Color>§success: Option<&'a Color>§success_foreground: Option<&'a Color>§warning: Option<&'a Color>§warning_foreground: Option<&'a Color>§info: Option<&'a Color>§info_foreground: Option<&'a Color>

Trait Implementations§

Source§

impl<'a> Default for ColorPaletteArgs<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ColorPaletteArgs<'a>

§

impl<'a> RefUnwindSafe for ColorPaletteArgs<'a>

§

impl<'a> Send for ColorPaletteArgs<'a>

§

impl<'a> Sync for ColorPaletteArgs<'a>

§

impl<'a> Unpin for ColorPaletteArgs<'a>

§

impl<'a> UnsafeUnpin for ColorPaletteArgs<'a>

§

impl<'a> UnwindSafe for ColorPaletteArgs<'a>

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<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, 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.