Trait BrokenLinkCallback
pub trait BrokenLinkCallback: RefUnwindSafe + Send + Sync
The type of the callback used when a reference link is encountered with no matching reference.
The details of the broken reference are passed in the
BrokenLinkReference argument. If a ResolvedReference is returned, it
is used as the link; otherwise, no link is made and the reference text is
preserved in its entirety.
Required Methods
fn resolve(&self, broken_link_reference: BrokenLinkReference<'_>) -> Option<ResolvedReference>Potentially resolve a single broken link reference.
Implementors
impl<F> BrokenLinkCallback for F where F: Fn(BrokenLinkReference<'_>) -> Option<ResolvedReference> + RefUnwindSafe + Send + Sync,