pub enum DocumentError {
InvalidSymbol {
latex: String,
reason: &'static str,
},
EmptyMatrix,
RaggedMatrix,
EmptyScript,
TooDeep,
UnsupportedDelimiter(char),
HostTokenTooLarge(u32),
}Expand description
A rule broken by a document.
Variants§
InvalidSymbol
An atom or big operator symbol whose LaTeX is unsafe to splice into the output.
EmptyMatrix
A matrix without any row or column.
RaggedMatrix
A matrix whose rows differ in length.
EmptyScript
A script with neither a subscript nor a superscript.
TooDeep
Slots nest deeper than MAX_DEPTH.
UnsupportedDelimiter(char)
A delimiter outside the supported set.
HostTokenTooLarge(u32)
A host box token above MAX_HOST_TOKEN.
Trait Implementations§
Source§impl Clone for DocumentError
impl Clone for DocumentError
Source§impl Debug for DocumentError
impl Debug for DocumentError
Source§impl Display for DocumentError
impl Display for DocumentError
impl Eq for DocumentError
Source§impl Error for DocumentError
impl Error for DocumentError
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()
Source§impl PartialEq for DocumentError
impl PartialEq for DocumentError
impl StructuralPartialEq for DocumentError
Auto Trait Implementations§
impl Freeze for DocumentError
impl RefUnwindSafe for DocumentError
impl Send for DocumentError
impl Sync for DocumentError
impl Unpin for DocumentError
impl UnsafeUnpin for DocumentError
impl UnwindSafe for DocumentError
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