pub enum Chroma {
Number(Number),
Percentage(Percentage),
None,
}Variants§
Implementations§
Source§impl Chroma
impl Chroma
Sourcepub const fn is_number(&self) -> bool
pub const fn is_number(&self) -> bool
Returns true if the enum is Chroma::Number otherwise false
Sourcepub const fn is_percentage(&self) -> bool
pub const fn is_percentage(&self) -> bool
Returns true if the enum is Chroma::Percentage otherwise false
Trait Implementations§
Source§impl From<Percentage> for Chroma
impl From<Percentage> for Chroma
Source§fn from(value: Percentage) -> Self
fn from(value: Percentage) -> Self
Converts to this type from the input type.
Source§impl NumberStorage for Chroma
impl NumberStorage for Chroma
Source§impl PercentageStorage for Chroma
impl PercentageStorage for Chroma
impl StructuralPartialEq for Chroma
Auto Trait Implementations§
impl Freeze for Chroma
impl RefUnwindSafe for Chroma
impl Send for Chroma
impl Sync for Chroma
impl Unpin for Chroma
impl UnwindSafe for Chroma
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