pub enum Locator {
Chapter(usize),
Href(String),
Fragment(String),
TocId(String),
Position(ReadingPosition),
}Expand description
Semantic navigation primitive for seeking/resolve operations.
Variants§
Chapter(usize)
Resolve by chapter index.
Href(String)
Resolve by chapter href (optionally with #fragment).
Fragment(String)
Resolve a fragment in the current chapter context.
TocId(String)
Resolve by TOC id (mapped from nav href fragment or label).
Position(ReadingPosition)
Resolve from a persisted reading position.
Trait Implementations§
impl Eq for Locator
impl StructuralPartialEq for Locator
Auto Trait Implementations§
impl Freeze for Locator
impl RefUnwindSafe for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnsafeUnpin for Locator
impl UnwindSafe for Locator
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