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 address in autolink like <john@example.org>
Trait Implementations§
impl Copy for LinkType
impl StructuralPartialEq for LinkType
Auto Trait Implementations§
impl Freeze for LinkType
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnwindSafe for LinkType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)