pub enum ListMarkKind {
ListStart {
ordered: bool,
},
ListEnd,
ItemStart,
ItemEnd,
}Expand description
The marker kind a VertBox::ListMark carries. ordered on ListStart
is the ONE piece of real data these markers carry (listing vs
enumerate are distinct stdlib commands, so this is an exact bit, not a
heuristic); nesting depth is recovered structurally by the reflow
walker’s stack from how markers are nested in the flat box stream, not
stored here.
Variants§
ListStart
Opens a <ul> (ordered = false) or <ol> (ordered = true).
ListEnd
Closes the innermost open list.
ItemStart
Opens one <li>.
ItemEnd
Closes the innermost open <li>.
Trait Implementations§
Source§impl Clone for ListMarkKind
impl Clone for ListMarkKind
Source§fn clone(&self) -> ListMarkKind
fn clone(&self) -> ListMarkKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ListMarkKind
Source§impl Debug for ListMarkKind
impl Debug for ListMarkKind
impl Eq for ListMarkKind
Source§impl PartialEq for ListMarkKind
impl PartialEq for ListMarkKind
impl StructuralPartialEq for ListMarkKind
Auto Trait Implementations§
impl Freeze for ListMarkKind
impl RefUnwindSafe for ListMarkKind
impl Send for ListMarkKind
impl Sync for ListMarkKind
impl Unpin for ListMarkKind
impl UnsafeUnpin for ListMarkKind
impl UnwindSafe for ListMarkKind
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