#[non_exhaustive]pub struct Palette {Show 20 fields
pub base: Style,
pub ink: Style,
pub strong: Style,
pub muted: Style,
pub accent: Style,
pub selected: Style,
pub good: Style,
pub warn: Style,
pub bad: Style,
pub rule: Style,
pub line: Style,
pub glass: Style,
pub shimmer: Style,
pub title: Style,
pub inactive: Style,
pub focus: Style,
pub small: Style,
pub bar: Option<Bar<'static>>,
pub count: Option<Count<'static>>,
pub mono: bool,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.base: Style§ink: Style§strong: Style§muted: Style§accent: Style§selected: Style§good: Style§warn: Style§bad: Style§rule: Style§line: Style§glass: Style§shimmer: Style§title: Style§inactive: Style§focus: Style§small: Style§bar: Option<Bar<'static>>§count: Option<Count<'static>>§mono: boolImplementations§
Source§impl Palette
impl Palette
pub const fn new(accent: Color) -> Self
pub const fn mono(self) -> Self
pub const fn mono_style(style: Style) -> Style
pub const fn base(self, style: Style) -> Self
pub const fn ink(self, style: Style) -> Self
pub const fn strong(self, style: Style) -> Self
pub const fn muted(self, style: Style) -> Self
pub const fn accent(self, style: Style) -> Self
pub const fn selected(self, style: Style) -> Self
pub const fn good(self, style: Style) -> Self
pub const fn warn(self, style: Style) -> Self
pub const fn bad(self, style: Style) -> Self
pub const fn rule(self, style: Style) -> Self
pub const fn line(self, style: Style) -> Self
pub const fn glass(self, style: Style) -> Self
pub const fn shimmer(self, style: Style) -> Self
pub const fn title(self, style: Style) -> Self
pub const fn inactive(self, style: Style) -> Self
pub const fn focus(self, style: Style) -> Self
pub const fn small(self, style: Style) -> Self
pub const fn bar(self, bar: Option<Bar<'static>>) -> Self
pub const fn count(self, count: Option<Count<'static>>) -> Self
pub const fn tone(&self, tone: Tone) -> Style
pub const fn header(&self) -> HeaderStyles
pub const fn list(&self) -> ListStyles
pub fn view<'a, S: Source>( &self, list: &'a mut List<S>, columns: &'a [Column<'a>], ) -> ListView<'a, S>
pub fn hourglass<'a>( &self, elapsed: Duration, label: &'a str, hint: Option<&'a str>, ) -> Hourglass<'a>
Trait Implementations§
impl Copy for Palette
impl Eq for Palette
impl StructuralPartialEq for Palette
Auto Trait Implementations§
impl Freeze for Palette
impl RefUnwindSafe for Palette
impl Send for Palette
impl Sync for Palette
impl Unpin for Palette
impl UnsafeUnpin for Palette
impl UnwindSafe for Palette
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more