pub struct ListBlock {
pub start_line: usize,
pub end_line: usize,
pub is_ordered: bool,
pub marker: Option<String>,
pub blockquote_prefix: String,
pub item_lines: Vec<usize>,
pub nesting_level: usize,
pub max_marker_width: usize,
}Expand description
Information about a list block
Fields§
§start_line: usizeLine number where the list starts (1-indexed)
end_line: usizeLine number where the list ends (1-indexed)
is_ordered: boolWhether it’s ordered or unordered
marker: Option<String>The consistent marker for unordered lists (if any)
blockquote_prefix: StringBlockquote prefix for this list (empty if not in blockquote)
item_lines: Vec<usize>Lines that are list items within this block
nesting_level: usizeNesting level (0 for top-level lists)
max_marker_width: usizeMaximum marker width seen in this block (e.g., 3 for “1. “, 4 for “10. “)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListBlock
impl RefUnwindSafe for ListBlock
impl Send for ListBlock
impl Sync for ListBlock
impl Unpin for ListBlock
impl UnwindSafe for ListBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more