pub struct Anchor<'s> {
pub label: &'s str,
pub byte_range: Option<(u32, u32)>,
pub importance: u16,
}Expand description
A sub-document anchor attached to a hit: fetch url and slice by the
byte range (or resolve the heading) instead of re-reading the whole page.
Fields§
§label: &'s strHeading-path label.
byte_range: Option<(u32, u32)>Byte range in the source document, when known.
importance: u16Segment importance in 1/65535 units.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Anchor<'s>
impl<'s> RefUnwindSafe for Anchor<'s>
impl<'s> Send for Anchor<'s>
impl<'s> Sync for Anchor<'s>
impl<'s> Unpin for Anchor<'s>
impl<'s> UnsafeUnpin for Anchor<'s>
impl<'s> UnwindSafe for Anchor<'s>
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