pub enum InlineNode {
Text(String),
Emphasis(Vec<InlineNode>),
Strong(Vec<InlineNode>),
Strikethrough(Vec<InlineNode>),
Link {
text: Vec<InlineNode>,
url: String,
title: Option<String>,
},
Image {
alt: String,
url: String,
title: Option<String>,
},
Code(String),
LineBreak,
Html(String),
}
Expand description
Represents an inline node in the Markdown AST
Variants§
Text(String)
Plain text
Emphasis(Vec<InlineNode>)
Emphasized text
Strong(Vec<InlineNode>)
Strongly emphasized text
Strikethrough(Vec<InlineNode>)
Strikethrough text
Link
Link
Image
Image
Code(String)
Inline code
LineBreak
Line break
Html(String)
HTML entity
Trait Implementations§
Source§impl Clone for InlineNode
impl Clone for InlineNode
Source§fn clone(&self) -> InlineNode
fn clone(&self) -> InlineNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InlineNode
impl RefUnwindSafe for InlineNode
impl Send for InlineNode
impl Sync for InlineNode
impl Unpin for InlineNode
impl UnwindSafe for InlineNode
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