pub enum FlexOffset {
None,
Xs,
Sm,
Md,
Lg,
Xl,
Xxl,
}
Expand description
FlexOffset : You can specify the offset of a component with the offset*
property, in pixels or with a keyword. You can also specify the percentage to the box width for offsetStart
and offsetEnd
and to the box height for offsetTop
and offsetBottom
. FlexOffset just provides only keywords.
You can specify the offset of a component with the offset*
property, in pixels or with a keyword. You can also specify the percentage to the box width for offsetStart
and offsetEnd
and to the box height for offsetTop
and offsetBottom
. FlexOffset just provides only keywords.
Variants§
Trait Implementations§
Source§impl Clone for FlexOffset
impl Clone for FlexOffset
Source§fn clone(&self) -> FlexOffset
fn clone(&self) -> FlexOffset
Returns a copy 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 FlexOffset
impl Debug for FlexOffset
Source§impl Default for FlexOffset
impl Default for FlexOffset
Source§fn default() -> FlexOffset
fn default() -> FlexOffset
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FlexOffset
impl<'de> Deserialize<'de> for FlexOffset
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FlexOffset
impl Display for FlexOffset
Source§impl Hash for FlexOffset
impl Hash for FlexOffset
Source§impl Ord for FlexOffset
impl Ord for FlexOffset
Source§fn cmp(&self, other: &FlexOffset) -> Ordering
fn cmp(&self, other: &FlexOffset) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FlexOffset
impl PartialEq for FlexOffset
Source§impl PartialOrd for FlexOffset
impl PartialOrd for FlexOffset
Source§impl Serialize for FlexOffset
impl Serialize for FlexOffset
impl Copy for FlexOffset
impl Eq for FlexOffset
impl StructuralPartialEq for FlexOffset
Auto Trait Implementations§
impl Freeze for FlexOffset
impl RefUnwindSafe for FlexOffset
impl Send for FlexOffset
impl Sync for FlexOffset
impl Unpin for FlexOffset
impl UnwindSafe for FlexOffset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.