pub struct DocValue {
pub text: String,
pub format: DocFormat,
pub blocks: Vec<DocBlock>,
}Expand description
Fields§
§text: StringThe complete, unmodified source text of the document.
format: DocFormatThe detected source format (DocFormat::Markdown when any heading was
seen, otherwise DocFormat::Text).
blocks: Vec<DocBlock>The ordered blocks parsed from text.
Implementations§
Trait Implementations§
impl Eq for DocValue
impl StructuralPartialEq for DocValue
Auto Trait Implementations§
impl Freeze for DocValue
impl RefUnwindSafe for DocValue
impl Send for DocValue
impl Sync for DocValue
impl Unpin for DocValue
impl UnsafeUnpin for DocValue
impl UnwindSafe for DocValue
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