pub enum SelfPosition {
Center(Ident),
Start(Ident),
End(Ident),
SelfStart(Ident),
SelfEnd(Ident),
FlexStart(Ident),
FlexEnd(Ident),
}Expand description
https://drafts.csswg.org/css-align-3/#typedef-self-position
<self-position> = center | start | end | self-start | self-end | flex-start | flex-endVariants§
Center(Ident)
Start(Ident)
End(Ident)
SelfStart(Ident)
SelfEnd(Ident)
FlexStart(Ident)
FlexEnd(Ident)
Trait Implementations§
Source§impl Clone for SelfPosition
impl Clone for SelfPosition
Source§fn clone(&self) -> SelfPosition
fn clone(&self) -> SelfPosition
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 SelfPosition
impl Debug for SelfPosition
Source§impl From<SelfPosition> for Cursor
impl From<SelfPosition> for Cursor
Source§fn from(value: SelfPosition) -> Cursor
fn from(value: SelfPosition) -> Cursor
Converts to this type from the input type.
Source§impl From<SelfPosition> for Token
impl From<SelfPosition> for Token
Source§fn from(value: SelfPosition) -> Token
fn from(value: SelfPosition) -> Token
Converts to this type from the input type.
Source§impl Hash for SelfPosition
impl Hash for SelfPosition
Source§impl Ord for SelfPosition
impl Ord for SelfPosition
Source§fn cmp(&self, other: &SelfPosition) -> Ordering
fn cmp(&self, other: &SelfPosition) -> 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 SelfPosition
impl<'a> Parse<'a> for SelfPosition
Source§impl PartialEq for SelfPosition
impl PartialEq for SelfPosition
Source§impl PartialOrd for SelfPosition
impl PartialOrd for SelfPosition
Source§impl<'a> Peek<'a> for SelfPosition
impl<'a> Peek<'a> for SelfPosition
Source§impl ToCursors for SelfPosition
impl ToCursors for SelfPosition
fn to_cursors(&self, s: &mut impl CursorSink)
impl Copy for SelfPosition
impl Eq for SelfPosition
impl StructuralPartialEq for SelfPosition
Auto Trait Implementations§
impl Freeze for SelfPosition
impl RefUnwindSafe for SelfPosition
impl Send for SelfPosition
impl Sync for SelfPosition
impl Unpin for SelfPosition
impl UnwindSafe for SelfPosition
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