pub enum TextAlignStyleValue {
Start(Ident),
End(Ident),
Left(Ident),
Right(Ident),
Center(Ident),
String(String),
Justify(Ident),
MatchParent(Ident),
JustifyAll(Ident),
}Expand description
Represents the style value for text-align as defined in css-text-4.
The text-align CSS property sets the horizontal placement of the inner content of a block element.
The grammar is defined as:
start | end | left | right | center | <string> | justify | match-parent | justify-allVariants§
Start(Ident)
End(Ident)
Left(Ident)
Right(Ident)
Center(Ident)
String(String)
Justify(Ident)
MatchParent(Ident)
JustifyAll(Ident)
Trait Implementations§
Source§impl Clone for TextAlignStyleValue
impl Clone for TextAlignStyleValue
Source§fn clone(&self) -> TextAlignStyleValue
fn clone(&self) -> TextAlignStyleValue
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 TextAlignStyleValue
impl Debug for TextAlignStyleValue
Source§impl Hash for TextAlignStyleValue
impl Hash for TextAlignStyleValue
Source§impl Ord for TextAlignStyleValue
impl Ord for TextAlignStyleValue
Source§fn cmp(&self, other: &TextAlignStyleValue) -> Ordering
fn cmp(&self, other: &TextAlignStyleValue) -> 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 TextAlignStyleValue
impl<'a> Parse<'a> for TextAlignStyleValue
Source§impl PartialEq for TextAlignStyleValue
impl PartialEq for TextAlignStyleValue
Source§impl PartialOrd for TextAlignStyleValue
impl PartialOrd for TextAlignStyleValue
Source§impl<'a> Peek<'a> for TextAlignStyleValue
impl<'a> Peek<'a> for TextAlignStyleValue
Source§impl ToCursors for TextAlignStyleValue
impl ToCursors for TextAlignStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TextAlignStyleValue
impl StructuralPartialEq for TextAlignStyleValue
Auto Trait Implementations§
impl Freeze for TextAlignStyleValue
impl RefUnwindSafe for TextAlignStyleValue
impl Send for TextAlignStyleValue
impl Sync for TextAlignStyleValue
impl Unpin for TextAlignStyleValue
impl UnwindSafe for TextAlignStyleValue
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