pub struct Link { /* private fields */ }Expand description
Link metadata. Destinations are untrusted and must be validated before opening.
Implementations§
Source§impl Link
impl Link
Sourcepub const fn destination(&self) -> &LinkDestination
pub const fn destination(&self) -> &LinkDestination
Returns the untrusted destination.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the source span including Markdown delimiters.
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Forget for Link
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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