pub enum InlineKind {
Text(String),
Emphasis(Vec<Inline>),
Strong(Vec<Inline>),
Strikethrough(Vec<Inline>),
Code(String),
Link {
id: LinkId,
content: Vec<Inline>,
},
Image {
destination: LinkDestination,
title: Option<String>,
alt: Vec<Inline>,
},
SoftBreak,
HardBreak,
}Expand description
Inline Markdown structure. Raw HTML is represented as literal text.
Variants§
Text(String)
Ordinary text or escaped raw HTML.
Emphasis(Vec<Inline>)
Emphasized child inlines.
Strong(Vec<Inline>)
Strong child inlines.
Strikethrough(Vec<Inline>)
Struck-through child inlines.
Code(String)
Inline code, without source delimiters.
Link
A navigable link.
Image
An image destination and parsed alternative text; no resource is fetched.
Fields
§
destination: LinkDestinationUntrusted destination reported by the parser.
SoftBreak
A source newline, normally rendered as a space.
HardBreak
An explicit line break.
Trait Implementations§
Source§impl Clone for InlineKind
impl Clone for InlineKind
Source§impl Debug for InlineKind
impl Debug for InlineKind
impl Eq for InlineKind
Source§impl PartialEq for InlineKind
impl PartialEq for InlineKind
impl StructuralPartialEq for InlineKind
Auto Trait Implementations§
impl Forget for InlineKind
impl Freeze for InlineKind
impl RefUnwindSafe for InlineKind
impl Send for InlineKind
impl Sync for InlineKind
impl Unpin for InlineKind
impl UnsafeUnpin for InlineKind
impl UnwindSafe for InlineKind
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