#[non_exhaustive]pub enum InlineNode {
Show 16 variants
PlainText(Plain),
RawText(Raw),
VerbatimText(Verbatim),
BoldText(Bold),
ItalicText(Italic),
MonospaceText(Monospace),
HighlightText(Highlight),
SubscriptText(Subscript),
SuperscriptText(Superscript),
CurvedQuotationText(CurvedQuotation),
CurvedApostropheText(CurvedApostrophe),
StandaloneCurvedApostrophe(StandaloneCurvedApostrophe),
LineBreak(LineBreak),
InlineAnchor(Anchor),
Macro(InlineMacro),
CalloutRef(CalloutRef),
}Expand description
An InlineNode represents an inline node in a document.
An inline node is a structural element in a document that can contain other inline nodes and are only valid within a paragraph (a leaf).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PlainText(Plain)
RawText(Raw)
VerbatimText(Verbatim)
BoldText(Bold)
ItalicText(Italic)
MonospaceText(Monospace)
HighlightText(Highlight)
SubscriptText(Subscript)
SuperscriptText(Superscript)
CurvedQuotationText(CurvedQuotation)
CurvedApostropheText(CurvedApostrophe)
StandaloneCurvedApostrophe(StandaloneCurvedApostrophe)
LineBreak(LineBreak)
InlineAnchor(Anchor)
Macro(InlineMacro)
CalloutRef(CalloutRef)
Callout reference marker in verbatim content: <1>, <.>, etc.
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 moreSource§impl Debug for InlineNode
impl Debug for InlineNode
Source§impl<'de> Deserialize<'de> for InlineNode
impl<'de> Deserialize<'de> for InlineNode
Source§fn deserialize<D>(deserializer: D) -> Result<InlineNode, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<InlineNode, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InlineNode
impl PartialEq for InlineNode
Source§impl Serialize for InlineNode
impl Serialize 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