pub enum Inline {
}Expand description
Inline-level elements within paragraphs, headings, and other blocks.
Variants§
Text(String)
Plain text (decoded entity references, preserved backslash escapes).
LineBreak
Hard line break
Code(String)
Inline code span
Html(String)
Raw HTML fragment
Link(Link)
Link to a destination with optional title.
LinkReference(LinkReference)
Reference link
Image(Image)
Image with optional title.
Emphasis(Vec<Inline>)
Emphasis (* / _)
Strong(Vec<Inline>)
Strong emphasis (** / __)
Strikethrough(Vec<Inline>)
Strikethrough (~~)
Autolink(String)
Autolink (<https://> or <mailto:…>)
FootnoteReference(String)
Footnote reference ([^label])
Empty
Empty element. This is used to represent skipped elements in the AST.
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
Source§impl ExpandWith for Inline
impl ExpandWith for Inline
Source§fn expand_with<T: Transformer>(self, transformer: &mut T) -> Vec<Self>
fn expand_with<T: Transformer>(self, transformer: &mut T) -> Vec<Self>
Apply an expandable transformer to this AST node, returning multiple nodes
Source§impl TransformWith for Inline
impl TransformWith for Inline
Source§fn transform_with<T: Transformer>(self, transformer: &mut T) -> Self
fn transform_with<T: Transformer>(self, transformer: &mut T) -> Self
Apply a transformer to this AST node
Source§impl VisitWith for Inline
impl VisitWith for Inline
Source§fn visit_with<V: Visitor>(&self, visitor: &mut V)
fn visit_with<V: Visitor>(&self, visitor: &mut V)
Apply a visitor to this AST node
Source§impl<T: Default> WithData<T> for Inline
impl<T: Default> WithData<T> for Inline
Source§type WithDataType = Inline<T>
type WithDataType = Inline<T>
The type with user data attached
Source§fn with_data(self, data: T) -> Self::WithDataType
fn with_data(self, data: T) -> Self::WithDataType
Add user data to this AST node
Source§fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
fn with_default_data(self) -> Self::WithDataTypewhere
T: Default,
Add default user data to this AST node
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 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