pub struct MathBlock<'a> {
pub meta: Option<Span>,
pub lines: ArenaVec<'a, Segment>,
pub span: Span,
}Expand description
$$ … $$ display math, content is kept raw.
As with code fences, the fence length is not stored
(printers normalize to $$; the $ run at span.start gives it if ever needed).
Fields§
§meta: Option<Span>Raw text after the opening fence ($$meta), leading whitespace stripped.
Never contains $.
lines: ArenaVec<'a, Segment>Logical content lines (container prefixes and the opening fence’s indent stripped), fence lines excluded.
span: SpanTrait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MathBlock<'a>
impl<'a> !Send for MathBlock<'a>
impl<'a> !UnwindSafe for MathBlock<'a>
impl<'a> Freeze for MathBlock<'a>
impl<'a> Sync for MathBlock<'a>
impl<'a> Unpin for MathBlock<'a>
impl<'a> UnsafeUnpin for MathBlock<'a>
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