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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more