#[non_exhaustive]pub struct Anchor<'a> {
pub id: &'a str,
pub xreflabel: Option<&'a str>,
pub location: Location,
}Expand description
An Anchor represents an anchor in a document.
An anchor is a reference point in a document that can be linked to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: &'a str§xreflabel: Option<&'a str>§location: LocationImplementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Anchor<'a>
Auto Trait Implementations§
impl<'a> Freeze for Anchor<'a>
impl<'a> RefUnwindSafe for Anchor<'a>
impl<'a> Send for Anchor<'a>
impl<'a> Sync for Anchor<'a>
impl<'a> Unpin for Anchor<'a>
impl<'a> UnsafeUnpin for Anchor<'a>
impl<'a> UnwindSafe for Anchor<'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