pub enum Inline {
Text(String),
Emphasis(Vec<Inline>),
Strong(Vec<Inline>),
Underline(Vec<Inline>),
Strike(Vec<Inline>),
Code(String),
Link {
target: String,
content: Vec<Inline>,
},
Image {
target: String,
alt: String,
},
LineBreak,
Styled {
style: String,
content: Vec<Inline>,
},
}Expand description
A run of inline content.
Variants§
Text(String)
Emphasis(Vec<Inline>)
Italic (markdown.em).
Strong(Vec<Inline>)
Bold (markdown.strong).
Underline(Vec<Inline>)
Strike(Vec<Inline>)
Struck through (markdown.s).
Code(String)
Inline code or verbatim text (markdown.code).
Link
A link. With no content the target is shown.
Image
An inline image, shown as the image marker and its alt text.
LineBreak
A hard line break.
Styled
Content in a named theme style (document.timestamp, …) or a style
definition.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Inline
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin for Inline
impl UnwindSafe for Inline
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