pub struct LineInfo {
pub content: String,
pub byte_offset: usize,
pub indent: usize,
pub is_blank: bool,
pub in_code_block: bool,
pub in_front_matter: bool,
pub list_item: Option<ListItemInfo>,
pub heading: Option<HeadingInfo>,
pub blockquote: Option<BlockquoteInfo>,
}Expand description
Pre-computed information about a line
Fields§
§content: StringThe actual line content (without newline)
byte_offset: usizeByte offset where this line starts in the document
indent: usizeNumber of leading spaces/tabs
is_blank: boolWhether the line is blank (empty or only whitespace)
in_code_block: boolWhether this line is inside a code block
in_front_matter: boolWhether this line is inside front matter
list_item: Option<ListItemInfo>List item information if this line starts a list item
heading: Option<HeadingInfo>Heading information if this line is a heading
blockquote: Option<BlockquoteInfo>Blockquote information if this line is a blockquote
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnwindSafe for LineInfo
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