pub enum MathError {
InputLimit(String),
SourceNilChild,
SourceConversion(String),
Empty,
InvalidDimensions,
Unsupported,
Unbalanced {
delimiter: char,
byte: usize,
},
}Expand description
Math parsing or rendering failure.
Variants§
InputLimit(String)
Input rejected before the recursive MathJax parser.
SourceNilChild
An original MathJax parser leaves a nil child which SVG wrapping dereferences. Native context is not a fabricated Go runtime stack.
SourceConversion(String)
The pinned parser failed before constructing a renderable TeX error.
Empty
No expression was supplied.
InvalidDimensions
The emitted SVG did not expose finite positive intrinsic dimensions.
Unsupported
The expression is outside the translated MathJax surface; no exact SVG can be produced.
Unbalanced
A brace group was not balanced.
Trait Implementations§
impl Eq for MathError
Source§impl Error for MathError
impl Error for MathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for MathError
Auto Trait Implementations§
impl Forget for MathError
impl Freeze for MathError
impl Move for MathError
impl RefUnwindSafe for MathError
impl Send for MathErrorwhere
RawVecInner: Send,
impl Sync for MathErrorwhere
RawVecInner: Sync,
impl Unpin for MathError
impl UnsafeUnpin for MathError
impl UnwindSafe for MathErrorwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.