pub enum InlineNode {
Text(String),
Emphasis(Vec<InlineNode>),
Strong(Vec<InlineNode>),
Strike(Vec<InlineNode>),
InlineCode(String),
Link {
url: String,
title: Option<String>,
content: Vec<InlineNode>,
},
Image {
url: String,
title: Option<String>,
alt: String,
},
InlineContainer(Vec<InlineNode>),
HtmlElement(HtmlElement),
SoftBreak,
HardBreak,
}Expand description
Inline node type, representing inline elements used within block-level elements
Variants§
Text(String)
Plain text
Emphasis(Vec<InlineNode>)
Emphasis (italic)
Strong(Vec<InlineNode>)
Strong emphasis (bold)
Strike(Vec<InlineNode>)
Strikethrough
InlineCode(String)
Inline code
Link
Link
Fields
§
content: Vec<InlineNode>Link text
Image
Image
InlineContainer(Vec<InlineNode>)
Inline element collection, without formatting and line breaks
HtmlElement(HtmlElement)
HTML inline element
SoftBreak
Soft break (single line break)
HardBreak
Hard break (two spaces followed by a line break, or backslash followed by a line break)
Implementations§
Trait Implementations§
Source§impl Clone for InlineNode
impl Clone for InlineNode
Source§fn clone(&self) -> InlineNode
fn clone(&self) -> InlineNode
Returns a copy 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 moreSource§impl Debug for InlineNode
impl Debug for InlineNode
Source§impl Display for InlineNode
impl Display for InlineNode
Source§impl PartialEq for InlineNode
impl PartialEq for InlineNode
impl StructuralPartialEq for InlineNode
Auto 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