pub struct Definition<'a> {
pub label: ArenaVec<'a, Segment>,
pub destination: Destination,
pub title: Option<ArenaVec<'a, Segment>>,
pub span: Span,
}Expand description
A link reference definition: [label]: dest "title".
Label and title may span lines,
and a multi-line span would include the container prefixes between them,
so both are logical-line pieces (see Segment::join).
Normalize the label from the joined pieces;
a title’s continuation pieces keep their leading whitespace raw (micromark strips all of it).
Fields§
§label: ArenaVec<'a, Segment>Between the brackets.
destination: Destination§title: Option<ArenaVec<'a, Segment>>Including the quotes.
span: SpanTrait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Definition<'a>
impl<'a> !Send for Definition<'a>
impl<'a> !UnwindSafe for Definition<'a>
impl<'a> Freeze for Definition<'a>
impl<'a> Sync for Definition<'a>
impl<'a> Unpin for Definition<'a>
impl<'a> UnsafeUnpin for Definition<'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