pub enum Inline {
Text(String),
Code(String),
Emphasis(Vec<Inline>),
Strong(Vec<Inline>),
Strikethrough(Vec<Inline>),
Link {
target: String,
title: String,
content: Vec<Inline>,
},
Image {
target: String,
title: String,
alt: String,
},
FootnoteReference {
name: String,
},
SoftBreak,
LineBreak,
Unsupported {
construct: Construct,
source: String,
},
}Expand description
One inline mark. Inline marks carry no span: the readers of today line a preview up with its source block by block (D26).
Variants§
Text(String)
Code(String)
Emphasis(Vec<Inline>)
Strong(Vec<Inline>)
Strikethrough(Vec<Inline>)
Link
A target the grammar admits: relative, http, https or mailto
(D23). title is empty when the source gave none.
Image
An image whose target the grammar admits, with its alternative text.
FootnoteReference
SoftBreak
LineBreak
Unsupported
Read but not drawn: the page shows source.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Inline
impl<'de> Deserialize<'de> for Inline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Inline
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