pub struct LinkReference {
pub children: Vec<Node>,
pub position: Option<Position>,
pub reference_kind: ReferenceKind,
pub identifier: String,
pub label: Option<String>,
}Expand description
Link reference.
> | [a]
^^^Fields§
§children: Vec<Node>Content model.
position: Option<Position>Positional info.
reference_kind: ReferenceKindExplicitness of a reference.
identifier: StringValue that can match another node.
identifier is a source value: character escapes and character references
are not parsed.
Its value must be normalized.
label: Option<String>label is a string value: it works just like title on a link or a
lang on code: character escapes and character references are parsed.
To normalize a value, collapse markdown whitespace ([\t\n\r ]+) to a
space, trim the optional initial and/or final space, and perform
case-folding.
Trait Implementations§
Source§impl Clone for LinkReference
impl Clone for LinkReference
Source§fn clone(&self) -> LinkReference
fn clone(&self) -> LinkReference
Returns a duplicate of the value. Read more
1.0.0 · 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 LinkReference
impl Debug for LinkReference
Source§impl PartialEq for LinkReference
impl PartialEq for LinkReference
impl Eq for LinkReference
impl StructuralPartialEq for LinkReference
Auto Trait Implementations§
impl Freeze for LinkReference
impl RefUnwindSafe for LinkReference
impl Send for LinkReference
impl Sync for LinkReference
impl Unpin for LinkReference
impl UnwindSafe for LinkReference
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