pub enum AlignContentStyleValue {
Normal(Ident),
BaselinePosition(BaselinePosition),
ContentDistribution(ContentDistribution),
ContentPosition(Option<OverflowPosition>, ContentPosition),
}Expand description
Represents the style value for align-content as defined in css-align-3.
Flexbox is a one-dimensional layout system, which places content either horizontally or vertically, with optional wrapping.
The grammar is defined as:
normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>Variants§
Normal(Ident)
BaselinePosition(BaselinePosition)
ContentDistribution(ContentDistribution)
ContentPosition(Option<OverflowPosition>, ContentPosition)
Trait Implementations§
Source§impl Clone for AlignContentStyleValue
impl Clone for AlignContentStyleValue
Source§fn clone(&self) -> AlignContentStyleValue
fn clone(&self) -> AlignContentStyleValue
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 AlignContentStyleValue
impl Debug for AlignContentStyleValue
Source§impl Hash for AlignContentStyleValue
impl Hash for AlignContentStyleValue
Source§impl Ord for AlignContentStyleValue
impl Ord for AlignContentStyleValue
Source§fn cmp(&self, other: &AlignContentStyleValue) -> Ordering
fn cmp(&self, other: &AlignContentStyleValue) -> 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 AlignContentStyleValue
impl<'a> Parse<'a> for AlignContentStyleValue
Source§impl PartialEq for AlignContentStyleValue
impl PartialEq for AlignContentStyleValue
Source§impl PartialOrd for AlignContentStyleValue
impl PartialOrd for AlignContentStyleValue
Source§impl<'a> Peek<'a> for AlignContentStyleValue
impl<'a> Peek<'a> for AlignContentStyleValue
Source§impl ToCursors for AlignContentStyleValue
impl ToCursors for AlignContentStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for AlignContentStyleValue
impl StructuralPartialEq for AlignContentStyleValue
Auto Trait Implementations§
impl Freeze for AlignContentStyleValue
impl RefUnwindSafe for AlignContentStyleValue
impl Send for AlignContentStyleValue
impl Sync for AlignContentStyleValue
impl Unpin for AlignContentStyleValue
impl UnwindSafe for AlignContentStyleValue
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