Enum pulldown_cmark::LinkType
source · [−]pub enum LinkType {
Inline,
Reference,
ReferenceUnknown,
Collapsed,
CollapsedUnknown,
Shortcut,
ShortcutUnknown,
Autolink,
Email,
}
Expand description
Type specifier for inline links. See the Tag::Link for more information.
Variants
Inline
Inline link like [foo](bar)
Reference
Reference link like [foo][bar]
ReferenceUnknown
Reference without destination in the document, but resolved by the broken_link_callback
Collapsed
Collapsed link like [foo][]
CollapsedUnknown
Collapsed link without destination in the document, but resolved by the broken_link_callback
Shortcut
Shortcut link like [foo]
ShortcutUnknown
Shortcut without destination in the document, but resolved by the broken_link_callback
Autolink
Autolink like <http://foo.bar/baz>
Email
Email address in autolink like <john@example.org>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LinkType
impl UnwindSafe for LinkType
Blanket Implementations
Mutably borrows from an owned value. Read more