Struct luthien_plugin::theme::Palette [−][src]
pub struct Palette<T> { pub black: T, pub red: T, pub green: T, pub yellow: T, pub blue: T, pub purple: T, pub cyan: T, pub white: T, }
Expand description
Colored palette of generic data.
Here, this is only used for Srgb
, but it can also be used to further process the
given colors.
Fields
black: T
red: T
green: T
yellow: T
blue: T
purple: T
cyan: T
white: T
Implementations
impl<T> Palette<T>
[src]
impl<T> Palette<T>
[src]Trait Implementations
impl<'de, T> Deserialize<'de> for Palette<T> where
T: Deserialize<'de>,
[src]
impl<'de, T> Deserialize<'de> for Palette<T> where
T: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<T: Copy> Copy for Palette<T>
[src]
impl<T: Eq> Eq for Palette<T>
[src]
impl<T> StructuralEq for Palette<T>
[src]
impl<T> StructuralPartialEq for Palette<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Palette<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Palette<T> where
T: Send,
T: Send,
impl<T> Sync for Palette<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Palette<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Palette<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,