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§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
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