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