[−][src]Enum cursive::theme::PaletteColor
Color entry in a palette.
Each PaletteColor
is used for a specific role in a default application.
Variants
Color used for the application background.
Color used for View shadows.
Color used for View backgrounds.
Primary color used for the text.
Secondary color used for the text.
Tertiary color used for the text.
Primary color used for title text.
Secondary color used for title text.
Color used for highlighting text.
Color used for highlighting inactive text.
Color used for highlighted text
Implementations
impl PaletteColor
[src]
pub fn resolve(self, palette: &Palette) -> Color
[src]
Given a palette, resolve self
to a concrete color.
Trait Implementations
impl Clone for PaletteColor
[src]
pub fn clone(&self) -> PaletteColor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PaletteColor
[src]
impl Debug for PaletteColor
[src]
impl<V> Enum<V> for PaletteColor
[src]
type Array = [V; 11]
Representation of an enum map for type V
, usually an array.
pub const POSSIBLE_VALUES: usize
[src]
pub fn slice(array: &<PaletteColor as Enum<V>>::Array) -> &[V]
[src]
pub fn slice_mut(array: &mut <PaletteColor as Enum<V>>::Array) -> &mut [V]
[src]
pub fn from_usize(value: usize) -> PaletteColor
[src]
pub fn to_usize(self) -> usize
[src]
pub fn from_function<F>(_f: F) -> <PaletteColor as Enum<V>>::Array where
F: FnMut(PaletteColor) -> V,
[src]
F: FnMut(PaletteColor) -> V,
impl Eq for PaletteColor
[src]
impl From<PaletteColor> for ColorStyle
[src]
pub fn from(color: PaletteColor) -> ColorStyle
[src]
impl From<PaletteColor> for ColorType
[src]
pub fn from(color: PaletteColor) -> ColorType
[src]
impl From<PaletteColor> for Style
[src]
pub fn from(color: PaletteColor) -> Style
[src]
impl FromStr for PaletteColor
[src]
type Err = ()
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<PaletteColor, ()>
[src]
impl Hash for PaletteColor
[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<PaletteColor> for Palette
[src]
type Output = Color
The returned type after indexing.
pub fn index(&self, palette_color: PaletteColor) -> &Color
[src]
impl IndexMut<PaletteColor> for Palette
[src]
pub fn index_mut(&mut self, palette_color: PaletteColor) -> &mut Color
[src]
impl PartialEq<PaletteColor> for PaletteColor
[src]
pub fn eq(&self, other: &PaletteColor) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PaletteColor
[src]
impl StructuralPartialEq for PaletteColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for PaletteColor
[src]
impl Send for PaletteColor
[src]
impl Sync for PaletteColor
[src]
impl Unpin for PaletteColor
[src]
impl UnwindSafe for PaletteColor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
[src]
T: Hash,
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.