#[non_exhaustive]pub enum LatexErrKind {
Show 25 variants
UnclosedGroup(EndToken),
UnmatchedClose(EndToken),
ExpectedArgumentGotClose,
ExpectedArgumentGotEOF,
ExpectedDelimiter(DelimiterModifier),
DisallowedChar(char),
UnknownEnvironment(Box<str>),
UnknownCommand(Box<str>),
UnknownColor(Box<str>),
MismatchedEnvironment {
expected: Env,
got: Env,
},
CannotBeUsedHere {
got: LimitedUsabilityToken,
correct_place: Place,
},
ExpectedRelation,
BoundFollowedByBound,
DuplicateSubOrSup,
ExpectedText(&'static str),
ExpectedLength(Box<str>),
ExpectedColSpec(Box<str>),
ExpectedNumber(Box<str>),
NotValidInTextMode,
InvalidMacroName(String),
InvalidParameterNumber,
MacroParameterOutsideCustomCommand,
ExpectedParamNumberGotEOF,
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(DelimiterModifier)
DisallowedChar(char)
UnknownEnvironment(Box<str>)
UnknownCommand(Box<str>)
UnknownColor(Box<str>)
MismatchedEnvironment
CannotBeUsedHere
ExpectedRelation
BoundFollowedByBound
DuplicateSubOrSup
ExpectedText(&'static str)
ExpectedLength(Box<str>)
ExpectedColSpec(Box<str>)
ExpectedNumber(Box<str>)
NotValidInTextMode
InvalidMacroName(String)
InvalidParameterNumber
MacroParameterOutsideCustomCommand
ExpectedParamNumberGotEOF
HardLimitExceeded
Internal
Implementations§
Trait Implementations§
Source§impl Clone for LatexErrKind
impl Clone for LatexErrKind
Source§fn clone(&self) -> LatexErrKind
fn clone(&self) -> LatexErrKind
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 Freeze for LatexErrKind
impl RefUnwindSafe for LatexErrKind
impl Send for LatexErrKind
impl Sync for LatexErrKind
impl Unpin for LatexErrKind
impl UnwindSafe for LatexErrKind
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