Trait pulldown_cmark::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>)>,