pub struct LinkDef<'a> {
pub label: &'a str,
pub dest: &'a str,
pub title: Option<&'a str>,
pub raw_range: Range<usize>,
}Expand description
One link reference definition ([label]: dest).
The lint-rule surface produced by crate::Document::link_defs.
Pulldown-cmark does not emit definition events, so the document crate owns a reference-definition scan alongside the event walk.
Fields§
§label: &'a str§dest: &'a str§title: Option<&'a str>Optional title from "…", '…', or (…) after the
destination. Surrounding quotes / parens are excluded.
raw_range: Range<usize>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LinkDef<'a>
impl<'a> RefUnwindSafe for LinkDef<'a>
impl<'a> Send for LinkDef<'a>
impl<'a> Sync for LinkDef<'a>
impl<'a> Unpin for LinkDef<'a>
impl<'a> UnsafeUnpin for LinkDef<'a>
impl<'a> UnwindSafe for LinkDef<'a>
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