pub struct LinkReference {
pub meta: NodeMeta,
pub identifier: String,
pub label: String,
pub kind: ReferenceKind,
pub children: Vec<Inline>,
}Expand description
A reference link: [text][label], [text][], or [text].
Fields§
§meta: NodeMetaNode metadata (source span).
identifier: StringThe normalized lookup key matching a Definition.
label: StringThe label as written in the source.
kind: ReferenceKindWhether the reference is full, collapsed, or shortcut form.
children: Vec<Inline>The link’s inline content (the visible text).
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 (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 LinkReference
impl Debug for LinkReference
impl Eq for LinkReference
Source§impl From<LinkReference> for Inline
impl From<LinkReference> for Inline
Source§fn from(node: LinkReference) -> Self
fn from(node: LinkReference) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LinkReference
impl PartialEq for LinkReference
Source§fn eq(&self, other: &LinkReference) -> bool
fn eq(&self, other: &LinkReference) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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