pub struct BrokenLinkCallback<F>(/* private fields */);Expand description
Wrapper to implement ParserCallbacks::handle_broken_link with a closure.
Used internally by Parser::new_with_broken_link_callback.
Trait Implementations§
Source§impl<'input, F> ParserCallbacks<'input> for BrokenLinkCallback<F>
impl<'input, F> ParserCallbacks<'input> for BrokenLinkCallback<F>
Source§fn handle_broken_link(
&mut self,
link: BrokenLink<'input>,
) -> Option<(CowStr<'input>, CowStr<'input>)>
fn handle_broken_link( &mut self, link: BrokenLink<'input>, ) -> Option<(CowStr<'input>, CowStr<'input>)>
Potentially provide a custom definition for a broken link. Read more
Auto Trait Implementations§
impl<F> Freeze for BrokenLinkCallback<F>where
F: Freeze,
impl<F> RefUnwindSafe for BrokenLinkCallback<F>where
F: RefUnwindSafe,
impl<F> Send for BrokenLinkCallback<F>where
F: Send,
impl<F> Sync for BrokenLinkCallback<F>where
F: Sync,
impl<F> Unpin for BrokenLinkCallback<F>where
F: Unpin,
impl<F> UnsafeUnpin for BrokenLinkCallback<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for BrokenLinkCallback<F>where
F: UnwindSafe,
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