Struct markdown::mdast::LinkReference
source · 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: ReferenceKind
Explicitness of a reference.
identifier: String
Value 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 copy 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
source§fn eq(&self, other: &LinkReference) -> bool
fn eq(&self, other: &LinkReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LinkReference
impl StructuralEq for LinkReference
impl StructuralPartialEq for LinkReference
Auto Trait Implementations§
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