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