pub enum ListItemMarker<'src> {
Hyphen(Span<'src>),
Asterisks(Span<'src>),
Bullet(Span<'src>),
Dots(Span<'src>),
AlphaListCapital(Span<'src>),
AlphaListLower(Span<'src>),
RomanNumeralLower(Span<'src>),
RomanNumeralUpper(Span<'src>),
ArabicNumeral(Span<'src>),
Callout(Span<'src>),
DefinedTerm {
term: Content<'src>,
marker: Span<'src>,
source: Span<'src>,
},
}Expand description
A list item is signaled by one of several designated marker sequences.
Variants§
Hyphen(Span<'src>)
Unordered list (hyphen).
Asterisks(Span<'src>)
Unordered list (asterisks).
Bullet(Span<'src>)
Unordered list (Unicode bullet).
Dots(Span<'src>)
Ordered list (dots).
AlphaListCapital(Span<'src>)
Uppercase letter followed by dot (alpha list).
AlphaListLower(Span<'src>)
Lowercase letter followed by dot (alpha list).
RomanNumeralLower(Span<'src>)
Lowercase Roman numeral followed by closing paren.
RomanNumeralUpper(Span<'src>)
Uppercase Roman numeral followed by closing paren.
ArabicNumeral(Span<'src>)
Explicit Arabic numeral followed by dot (e.g., “7.”).
Callout(Span<'src>)
A callout list marker (<1> or <.>), used to annotate lines in a
preceding verbatim block.
DefinedTerm
A term to be defined.
Trait Implementations§
Source§impl<'src> Clone for ListItemMarker<'src>
impl<'src> Clone for ListItemMarker<'src>
Source§fn clone(&self) -> ListItemMarker<'src>
fn clone(&self) -> ListItemMarker<'src>
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 moreSource§impl Debug for ListItemMarker<'_>
impl Debug for ListItemMarker<'_>
impl<'src> Eq for ListItemMarker<'src>
Source§impl<'src> HasSpan<'src> for ListItemMarker<'src>
impl<'src> HasSpan<'src> for ListItemMarker<'src>
Source§impl<'src> PartialEq for ListItemMarker<'src>
impl<'src> PartialEq for ListItemMarker<'src>
Source§fn eq(&self, other: &ListItemMarker<'src>) -> bool
fn eq(&self, other: &ListItemMarker<'src>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'src> StructuralPartialEq for ListItemMarker<'src>
Auto Trait Implementations§
impl<'src> Freeze for ListItemMarker<'src>
impl<'src> RefUnwindSafe for ListItemMarker<'src>
impl<'src> Send for ListItemMarker<'src>
impl<'src> Sync for ListItemMarker<'src>
impl<'src> Unpin for ListItemMarker<'src>
impl<'src> UnsafeUnpin for ListItemMarker<'src>
impl<'src> UnwindSafe for ListItemMarker<'src>
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