pub struct Inline {
pub kind: InlineKind,
pub text: String,
pub span: SourceSpan,
pub label_span: Option<SourceSpan>,
}Expand description
Inline run produced by the markup tokenizer.
Fields§
§kind: InlineKind§text: String§span: SourceSpan§label_span: Option<SourceSpan>For InlineKind::Reference / InlineKind::PageReference, the
source span of the label identifier alone; the intro in @intro
or @page(intro), excluding the @ sigil and the @page(…)
wrapper. The lowerer stamps it as the node’s label_span so editor
features (rename) read the identifier range directly instead of
re-deriving it from Self::span geometry. None for every other
inline kind.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Inline
impl RefUnwindSafe for Inline
impl Send for Inline
impl Sync for Inline
impl Unpin for Inline
impl UnsafeUnpin 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