pub struct Link {
pub meta: NodeMeta,
pub destination: String,
pub destination_kind: LinkDestinationKind,
pub title: Option<String>,
pub title_kind: Option<LinkTitleKind>,
pub children: Vec<Inline>,
}Expand description
An inline link: [text](destination "title").
Fields§
§meta: NodeMetaNode metadata (source span).
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.
children: Vec<Inline>The link’s inline content (the visible text).
Implementations§
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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