pub enum PositionValue {
Initial,
Inherit,
Revert,
RevertLayer,
Unset,
Static,
Relative,
Absolute,
Sticky,
Fixed,
}Variants§
Implementations§
Source§impl PositionValue
impl PositionValue
Sourcepub const fn is_initial(&self) -> bool
pub const fn is_initial(&self) -> bool
Returns true if the enum is PositionValue::Initial otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is PositionValue::Inherit otherwise false
Sourcepub const fn is_revert(&self) -> bool
pub const fn is_revert(&self) -> bool
Returns true if the enum is PositionValue::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 PositionValue::RevertLayer otherwise false
Sourcepub const fn is_unset(&self) -> bool
pub const fn is_unset(&self) -> bool
Returns true if the enum is PositionValue::Unset otherwise false
Sourcepub const fn is_static(&self) -> bool
pub const fn is_static(&self) -> bool
Returns true if the enum is PositionValue::Static otherwise false
Sourcepub const fn is_relative(&self) -> bool
pub const fn is_relative(&self) -> bool
Returns true if the enum is PositionValue::Relative otherwise false
Sourcepub const fn is_absolute(&self) -> bool
pub const fn is_absolute(&self) -> bool
Returns true if the enum is PositionValue::Absolute otherwise false
Trait Implementations§
Source§impl Clone for PositionValue
impl Clone for PositionValue
Source§fn clone(&self) -> PositionValue
fn clone(&self) -> PositionValue
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 PositionValue
impl Debug for PositionValue
Source§impl Display for PositionValue
impl Display for PositionValue
Source§impl PartialEq for PositionValue
impl PartialEq for PositionValue
impl StructuralPartialEq for PositionValue
impl UnitDataType<Position<PositionValue>> for PositionValue
Auto Trait Implementations§
impl Freeze for PositionValue
impl RefUnwindSafe for PositionValue
impl Send for PositionValue
impl Sync for PositionValue
impl Unpin for PositionValue
impl UnwindSafe for PositionValue
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