pub enum ScaleValue {
Initial,
Inherit,
Revert,
RevertLayer,
Unset,
None,
Percentage(Percentage),
}Variants§
Implementations§
Source§impl ScaleValue
impl ScaleValue
Sourcepub const fn is_initial(&self) -> bool
pub const fn is_initial(&self) -> bool
Returns true if the enum is ScaleValue::Initial otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is ScaleValue::Inherit otherwise false
Sourcepub const fn is_revert(&self) -> bool
pub const fn is_revert(&self) -> bool
Returns true if the enum is ScaleValue::Revert otherwise false
Sourcepub const fn is_revert_layer(&self) -> bool
pub const fn is_revert_layer(&self) -> bool
Returns true if the enum is ScaleValue::RevertLayer otherwise false
Sourcepub const fn is_unset(&self) -> bool
pub const fn is_unset(&self) -> bool
Returns true if the enum is ScaleValue::Unset otherwise false
Sourcepub const fn is_none(&self) -> bool
pub const fn is_none(&self) -> bool
Returns true if the enum is ScaleValue::None otherwise false
Sourcepub const fn is_percentage(&self) -> bool
pub const fn is_percentage(&self) -> bool
Returns true if the enum is ScaleValue::Percentage otherwise false
Trait Implementations§
Source§impl Clone for ScaleValue
impl Clone for ScaleValue
Source§fn clone(&self) -> ScaleValue
fn clone(&self) -> ScaleValue
Returns a duplicate 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 ScaleValue
impl Debug for ScaleValue
Source§impl Display for ScaleValue
impl Display for ScaleValue
Source§impl PartialEq for ScaleValue
impl PartialEq for ScaleValue
impl StructuralPartialEq for ScaleValue
impl UnitDataType<Scale<ScaleValue>> for ScaleValue
Auto Trait Implementations§
impl Freeze for ScaleValue
impl RefUnwindSafe for ScaleValue
impl Send for ScaleValue
impl Sync for ScaleValue
impl Unpin for ScaleValue
impl UnwindSafe for ScaleValue
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