#[non_exhaustive]pub enum Inline<'src> {
Uninterpreted(Span<'src>),
Sequence(Vec<Self>, Span<'src>),
Macro(InlineMacro<'src>),
}Expand description
An inline element is a phrase (i.e., span of content) within a block element or one of its attributes in an AsciiDoc document.
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.
Uninterpreted(Span<'src>)
Uninterpreted text (i.e., plain text) is text (character data) for which all inline grammar rules fail to match.
Sequence(Vec<Self>, Span<'src>)
A sequence of other inline blocks.
Macro(InlineMacro<'src>)
An inline macro.
Trait Implementations§
impl<'src> Eq for Inline<'src>
impl<'src> StructuralPartialEq for Inline<'src>
Auto Trait Implementations§
impl<'src> Freeze for Inline<'src>
impl<'src> RefUnwindSafe for Inline<'src>
impl<'src> Send for Inline<'src>
impl<'src> Sync for Inline<'src>
impl<'src> Unpin for Inline<'src>
impl<'src> UnwindSafe for Inline<'src>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)