pub struct SegmentRecord<'a> {
pub label: &'a str,
pub byte_range: Option<(u32, u32)>,
pub depth: u8,
pub importance: u16,
}Expand description
A sub-document segment to record — an anchor reference, never content.
Fields§
§label: &'a strHeading-path label (e.g. "Install > Linux").
byte_range: Option<(u32, u32)>Byte range in the source document, when known.
depth: u8Heading depth (1 = H1 …).
importance: u16Importance in 1/65535 units (deterministic prior or enrichment score).
Trait Implementations§
Source§impl<'a> Clone for SegmentRecord<'a>
impl<'a> Clone for SegmentRecord<'a>
impl<'a> Copy for SegmentRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for SegmentRecord<'a>
impl<'a> RefUnwindSafe for SegmentRecord<'a>
impl<'a> Send for SegmentRecord<'a>
impl<'a> Sync for SegmentRecord<'a>
impl<'a> Unpin for SegmentRecord<'a>
impl<'a> UnsafeUnpin for SegmentRecord<'a>
impl<'a> UnwindSafe for SegmentRecord<'a>
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