pub struct Anchor {
pub field: String,
pub byte_start: u32,
pub byte_end: u32,
}Expand description
Byte span within a prose field (doc, fence_body, etc.).
Fields§
§field: StringName of the field containing the link (e.g. "doc", "fence_body").
byte_start: u32Inclusive start byte offset within field’s UTF-8 content.
byte_end: u32Exclusive end byte offset within field’s UTF-8 content.
Trait Implementations§
impl Eq for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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