Enum avenger::marks::value::ColorOrGradient
source · pub enum ColorOrGradient {
Color([f32; 4]),
GradientIndex(u32),
}Variants§
Implementations§
source§impl ColorOrGradient
impl ColorOrGradient
pub fn color_or_transparent(&self) -> [f32; 4]
Trait Implementations§
source§impl Clone for ColorOrGradient
impl Clone for ColorOrGradient
source§fn clone(&self) -> ColorOrGradient
fn clone(&self) -> ColorOrGradient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ColorOrGradient
impl Debug for ColorOrGradient
source§impl<'de> Deserialize<'de> for ColorOrGradient
impl<'de> Deserialize<'de> for ColorOrGradient
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ColorOrGradient
impl PartialEq for ColorOrGradient
source§fn eq(&self, other: &ColorOrGradient) -> bool
fn eq(&self, other: &ColorOrGradient) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ColorOrGradient
impl Serialize for ColorOrGradient
impl StructuralPartialEq for ColorOrGradient
Auto Trait Implementations§
impl RefUnwindSafe for ColorOrGradient
impl Send for ColorOrGradient
impl Sync for ColorOrGradient
impl Unpin for ColorOrGradient
impl UnwindSafe for ColorOrGradient
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