pub(crate) struct RawListLine {
pub(crate) indent: usize,
pub(crate) ordered: bool,
pub(crate) content_start: usize,
pub(crate) content_end: usize,
pub(crate) line_start: usize,
}Expand description
One marker line captured during list collection. Not user-facing –
the public AST uses crate::ListItem after nesting is resolved.
Fields§
§indent: usizeByte count of ASCII spaces before the marker.
ordered: booltrue for \d+\. , false for - .
content_start: usizeByte offset (into Parser::src) of the first content byte
after the marker and its trailing whitespace.
content_end: usizeByte offset of the line’s content end (excluding any \r\n or
\n terminator).
line_start: usizeByte offset of the start of the line (the first leading-space
byte). Used for the item’s SourceSpan.
Trait Implementations§
Source§impl Clone for RawListLine
impl Clone for RawListLine
Source§fn clone(&self) -> RawListLine
fn clone(&self) -> RawListLine
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 RawListLine
impl Debug for RawListLine
impl Copy for RawListLine
Auto Trait Implementations§
impl Freeze for RawListLine
impl RefUnwindSafe for RawListLine
impl Send for RawListLine
impl Sync for RawListLine
impl Unpin for RawListLine
impl UnsafeUnpin for RawListLine
impl UnwindSafe for RawListLine
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