pub enum ClearStyleValue {
InlineStart(Ident),
InlineEnd(Ident),
BlockStart(Ident),
BlockEnd(Ident),
Left(Ident),
Right(Ident),
Top(Ident),
Bottom(Ident),
BothInline(Ident),
BothBlock(Ident),
Both(Ident),
None(Ident),
}Expand description
Represents the style value for clear as defined in css-page-floats-3.
The float CSS property aligns an element to either side of its container, allowing text and inline elements to flow around it. The clear CSS property sets whether an element is moved below floating elements that proceed it.
The grammar is defined as:
inline-start | inline-end | block-start | block-end | left | right | top | bottom | both-inline | both-block | both | noneVariants§
InlineStart(Ident)
InlineEnd(Ident)
BlockStart(Ident)
BlockEnd(Ident)
Left(Ident)
Right(Ident)
Top(Ident)
Bottom(Ident)
BothInline(Ident)
BothBlock(Ident)
Both(Ident)
None(Ident)
Trait Implementations§
Source§impl Clone for ClearStyleValue
impl Clone for ClearStyleValue
Source§fn clone(&self) -> ClearStyleValue
fn clone(&self) -> ClearStyleValue
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 ClearStyleValue
impl Debug for ClearStyleValue
Source§impl Hash for ClearStyleValue
impl Hash for ClearStyleValue
Source§impl Ord for ClearStyleValue
impl Ord for ClearStyleValue
Source§fn cmp(&self, other: &ClearStyleValue) -> Ordering
fn cmp(&self, other: &ClearStyleValue) -> 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 ClearStyleValue
impl<'a> Parse<'a> for ClearStyleValue
Source§impl PartialEq for ClearStyleValue
impl PartialEq for ClearStyleValue
Source§impl PartialOrd for ClearStyleValue
impl PartialOrd for ClearStyleValue
Source§impl<'a> Peek<'a> for ClearStyleValue
impl<'a> Peek<'a> for ClearStyleValue
Source§impl ToCursors for ClearStyleValue
impl ToCursors for ClearStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ClearStyleValue
impl StructuralPartialEq for ClearStyleValue
Auto Trait Implementations§
impl Freeze for ClearStyleValue
impl RefUnwindSafe for ClearStyleValue
impl Send for ClearStyleValue
impl Sync for ClearStyleValue
impl Unpin for ClearStyleValue
impl UnwindSafe for ClearStyleValue
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