pulldown_cmark

Trait BrokenLinkCallback

Source
pub trait BrokenLinkCallback<'input> {
    // Required method
    fn handle_broken_link(
        &mut self,
        link: BrokenLink<'input>,
    ) -> Option<(CowStr<'input>, CowStr<'input>)>;
}
Expand description

Trait for broken link callbacks.

See Parser::new_with_broken_link_callback. Automatically implemented for closures with the appropriate signature.

Required Methods§

Trait Implementations§

Source§

impl<'input> BrokenLinkCallback<'input> for Box<dyn BrokenLinkCallback<'input>>

Implementations on Foreign Types§

Source§

impl<'input> BrokenLinkCallback<'input> for Box<dyn BrokenLinkCallback<'input>>

Implementors§

Source§

impl<'input> BrokenLinkCallback<'input> for DefaultBrokenLinkCallback

Source§

impl<'input, T> BrokenLinkCallback<'input> for T
where T: FnMut(BrokenLink<'input>) -> Option<(CowStr<'input>, CowStr<'input>)>,