pub struct Definition {
pub meta: NodeMeta,
pub label: String,
pub identifier: String,
pub destination: String,
pub destination_kind: LinkDestinationKind,
pub title: Option<String>,
pub title_kind: Option<LinkTitleKind>,
}Expand description
A link reference definition. Source: [label]: destination "title".
Fields§
§meta: NodeMetaNode metadata (source span).
label: StringThe label as written in the source (e.g. Foo Bar).
identifier: StringThe normalized lookup key (case-folded, whitespace-collapsed) for matching references.
destination: StringThe link target URL.
destination_kind: LinkDestinationKindHow the destination was delimited (bare or <…>).
title: Option<String>The optional link title.
title_kind: Option<LinkTitleKind>How the title was quoted, if present.
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Definition
impl Debug for Definition
impl Eq for Definition
Source§impl From<Definition> for Block
impl From<Definition> for Block
Source§fn from(node: Definition) -> Self
fn from(node: Definition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Definition
impl PartialEq for Definition
Source§fn eq(&self, other: &Definition) -> bool
fn eq(&self, other: &Definition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin for Definition
impl UnwindSafe for Definition
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