#[non_exhaustive]pub enum LatexErrKind<'config> {
Show 25 variants
UnclosedGroup(EndToken),
UnmatchedClose(EndToken),
ExpectedArgumentGotClose,
ExpectedArgumentGotEOF,
ExpectedDelimiter {
location: DelimiterModifier,
got: Token<'config>,
},
DisallowedChar(char),
UnknownEnvironment(Box<str>),
UnknownCommand(Box<str>),
UnknownColor(Box<str>),
MismatchedEnvironment {
expected: Env,
got: Env,
},
CannotBeUsedHere {
got: Token<'config>,
correct_place: Place,
},
ExpectedRelation(Token<'config>),
BoundFollowedByBound,
DuplicateSubOrSup,
ExpectedText(&'static str),
ExpectedLength(Box<str>),
ExpectedColSpec(Box<str>),
ExpectedNumber(Box<str>),
RenderError,
NotValidInTextMode(Token<'config>),
InvalidMacroName(String),
InvalidParameterNumber,
MacroParameterOutsideCustomCommand,
HardLimitExceeded,
Internal,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnclosedGroup(EndToken)
UnmatchedClose(EndToken)
ExpectedArgumentGotClose
ExpectedArgumentGotEOF
ExpectedDelimiter
DisallowedChar(char)
UnknownEnvironment(Box<str>)
UnknownCommand(Box<str>)
UnknownColor(Box<str>)
MismatchedEnvironment
CannotBeUsedHere
ExpectedRelation(Token<'config>)
BoundFollowedByBound
DuplicateSubOrSup
ExpectedText(&'static str)
ExpectedLength(Box<str>)
ExpectedColSpec(Box<str>)
ExpectedNumber(Box<str>)
RenderError
NotValidInTextMode(Token<'config>)
InvalidMacroName(String)
InvalidParameterNumber
MacroParameterOutsideCustomCommand
HardLimitExceeded
Internal
Implementations§
Trait Implementations§
Source§impl<'config> Clone for LatexErrKind<'config>
impl<'config> Clone for LatexErrKind<'config>
Source§fn clone(&self) -> LatexErrKind<'config>
fn clone(&self) -> LatexErrKind<'config>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'config> Freeze for LatexErrKind<'config>
impl<'config> RefUnwindSafe for LatexErrKind<'config>
impl<'config> Send for LatexErrKind<'config>
impl<'config> Sync for LatexErrKind<'config>
impl<'config> Unpin for LatexErrKind<'config>
impl<'config> UnwindSafe for LatexErrKind<'config>
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