pub struct Paragraph {
pub text: String,
pub byte_range: Range<usize>,
pub line: usize,
}Expand description
A top-level prose paragraph (not inside a list item or code block).
Fields§
§text: StringParagraph text with inline markup stripped.
byte_range: Range<usize>Byte span in the original input.
line: usize1-based line number.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paragraph
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin for Paragraph
impl UnsafeUnpin for Paragraph
impl UnwindSafe for Paragraph
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