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