Struct BrokenLinkReference

pub struct BrokenLinkReference<'l> { pub normalized: &'l str, pub original: &'l str }

Struct to the broken link callback, containing details on the link reference which failed to find a match.

Fields

normalized: &'l str

The normalized reference link label. Unicode case folding is applied; see https://github.com/commonmark/commonmark-spec/issues/695 for a discussion on the details of what this exactly means.

original: &'l str

The original text in the link label.

Trait Implementations

impl<'l> Debug for BrokenLinkReference<'l>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'l> Freeze for BrokenLinkReference<'l>

impl<'l> RefUnwindSafe for BrokenLinkReference<'l>

impl<'l> Send for BrokenLinkReference<'l>

impl<'l> Sync for BrokenLinkReference<'l>

impl<'l> Unpin for BrokenLinkReference<'l>

impl<'l> UnsafeUnpin for BrokenLinkReference<'l>

impl<'l> UnwindSafe for BrokenLinkReference<'l>

Blanket Implementations

impl<T> Any for BrokenLinkReference<'l> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for BrokenLinkReference<'l> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for BrokenLinkReference<'l> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for BrokenLinkReference<'l>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for BrokenLinkReference<'l> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for BrokenLinkReference<'l> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for BrokenLinkReference<'l> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>