pub struct StructureNode {
pub level: u8,
pub title: String,
pub offset: ByteLen,
pub span: ByteLen,
}Expand description
One heading and the bytes beneath it.
Fields§
§level: u8Heading depth, 1 for #. Depth is the document’s, not ours.
title: String§offset: ByteLenByte offset of the heading line within the document.
span: ByteLenBytes from this heading up to the next heading of the same or a shallower level.
Trait Implementations§
Source§impl Clone for StructureNode
impl Clone for StructureNode
Source§impl Debug for StructureNode
impl Debug for StructureNode
Source§impl<'de> Deserialize<'de> for StructureNode
impl<'de> Deserialize<'de> for StructureNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StructureNode
Source§impl PartialEq for StructureNode
impl PartialEq for StructureNode
Source§impl Serialize for StructureNode
impl Serialize for StructureNode
impl StructuralPartialEq for StructureNode
Auto Trait Implementations§
impl Freeze for StructureNode
impl RefUnwindSafe for StructureNode
impl Send for StructureNode
impl Sync for StructureNode
impl Unpin for StructureNode
impl UnsafeUnpin for StructureNode
impl UnwindSafe for StructureNode
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