pub enum FlexBasisStyleValue {
Content(Ident),
Width(WidthStyleValue),
}Expand description
Represents the style value for flex-basis as defined in css-flexbox-1.
Flexbox is a one-dimensional layout system, which places content either horizontally or vertically, with optional wrapping.
The grammar is defined as:
content | <'width'>Variants§
Content(Ident)
Width(WidthStyleValue)
Trait Implementations§
Source§impl Clone for FlexBasisStyleValue
impl Clone for FlexBasisStyleValue
Source§fn clone(&self) -> FlexBasisStyleValue
fn clone(&self) -> FlexBasisStyleValue
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 FlexBasisStyleValue
impl Debug for FlexBasisStyleValue
Source§impl Hash for FlexBasisStyleValue
impl Hash for FlexBasisStyleValue
Source§impl Ord for FlexBasisStyleValue
impl Ord for FlexBasisStyleValue
Source§fn cmp(&self, other: &FlexBasisStyleValue) -> Ordering
fn cmp(&self, other: &FlexBasisStyleValue) -> 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<'a> Parse<'a> for FlexBasisStyleValue
impl<'a> Parse<'a> for FlexBasisStyleValue
Source§impl PartialEq for FlexBasisStyleValue
impl PartialEq for FlexBasisStyleValue
Source§impl PartialOrd for FlexBasisStyleValue
impl PartialOrd for FlexBasisStyleValue
Source§impl<'a> Peek<'a> for FlexBasisStyleValue
impl<'a> Peek<'a> for FlexBasisStyleValue
Source§impl ToCursors for FlexBasisStyleValue
impl ToCursors for FlexBasisStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for FlexBasisStyleValue
impl StructuralPartialEq for FlexBasisStyleValue
Auto Trait Implementations§
impl Freeze for FlexBasisStyleValue
impl RefUnwindSafe for FlexBasisStyleValue
impl Send for FlexBasisStyleValue
impl Sync for FlexBasisStyleValue
impl Unpin for FlexBasisStyleValue
impl UnwindSafe for FlexBasisStyleValue
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