pub enum MathError {
UnbalancedDelim {
delim: AnyDelim,
range: Range<usize>,
},
UnbalancedEnv {
name: String,
range: Range<usize>,
},
UnbalancedBraces {
offset: usize,
region: Range<usize>,
},
}Expand description
An unrecoverable shape the recogniser saw. The scanner never panics; it accumulates these and keeps scanning the rest of the document.
Variants§
UnbalancedDelim
\[, \(, $$, or $ with no matching close.
UnbalancedEnv
\begin{name} with no matching \end{name} at the same depth.
UnbalancedBraces
{ and } inside a recognised math body do not balance. The
region still scans because markers are balanced, but body
normalisation is skipped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MathError
impl RefUnwindSafe for MathError
impl Send for MathError
impl Sync for MathError
impl Unpin for MathError
impl UnsafeUnpin for MathError
impl UnwindSafe for MathError
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