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
impl Copy for LinkType
impl StructuralPartialEq for LinkType
Auto Trait Implementations
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnwindSafe for LinkType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more