#[non_exhaustive]pub struct InlineOutput {
pub inlines: Vec<Inline>,
pub tokens: Vec<InlineToken>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of an inline parse: the inlines, the tokens of the text, and any diagnostics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inlines: Vec<Inline>The inline nodes, with spans that are byte ranges into the text.
tokens: Vec<InlineToken>Runs that tile the text in order, each naming the innermost inline that holds it and the part of that inline it is.
diagnostics: Vec<Diagnostic>Diagnostics collected during parsing.
Implementations§
Source§impl InlineOutput
impl InlineOutput
Sourcepub fn nodes(&self) -> Vec<&Inline>
pub fn nodes(&self) -> Vec<&Inline>
The inlines in pre-order through Inline::children: a link’s text,
an image’s alt, and a directive’s label included. An
InlineToken’s node indexes this list.
Trait Implementations§
Source§impl Clone for InlineOutput
impl Clone for InlineOutput
Source§impl Debug for InlineOutput
impl Debug for InlineOutput
impl Eq for InlineOutput
Source§impl PartialEq for InlineOutput
impl PartialEq for InlineOutput
impl StructuralPartialEq for InlineOutput
Auto Trait Implementations§
impl Freeze for InlineOutput
impl RefUnwindSafe for InlineOutput
impl Send for InlineOutput
impl Sync for InlineOutput
impl Unpin for InlineOutput
impl UnsafeUnpin for InlineOutput
impl UnwindSafe for InlineOutput
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