pub enum MathSpan {
Inline {
delim: InlineDelim,
body: MathBody,
},
Display {
delim: DisplayDelim,
body: MathBody,
},
Environment {
env: EnvKind,
body: MathBody,
},
}Expand description
Per-region classification produced by the scanner.
Each variant carries the body as a MathBody — a hidden
abstraction that yields clean math content regardless of where the
math appeared in the source (top-level, blockquote, list item).
Callers read the body through MathBody::as_str.
Variants§
Implementations§
Trait Implementations§
impl Eq for MathSpan
impl StructuralPartialEq for MathSpan
Auto Trait Implementations§
impl Freeze for MathSpan
impl RefUnwindSafe for MathSpan
impl Send for MathSpan
impl Sync for MathSpan
impl Unpin for MathSpan
impl UnsafeUnpin for MathSpan
impl UnwindSafe for MathSpan
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