pub enum ParseErrorKind {
Show 140 variants
InvalidArrayStretch {
stretch: String,
},
DisplayModeOnly {
env: String,
},
ExpectedArrayDelimiter {
found: String,
},
InvalidSeparatorType {
separator: String,
},
TooManyMathInRow {
expected: usize,
actual: usize,
},
ExpectedClosingBracket {
found: String,
},
FunctionOnlyInArray {
func: String,
},
ExpectedCdDelimiter {
found: String,
},
MissingCdArrowChar {
arrow: String,
},
InvalidCdArrowSpecifier {
found: String,
},
InvalidSize {
size: String,
},
UnknownGroupType {
group_type: NodeType,
},
UnrecognizedGenfracCommand {
command: String,
},
InvalidGenfracStyle {
level: String,
},
InvalidEnvironmentName {
value: String,
},
NoSuchEnvironment {
name: String,
},
ExpectedEnvironmentAfterEnd {
found: String,
},
MismatchedEnvironmentEnd {
begin: String,
end: String,
},
InvalidIncludeGraphicsNumber {
value: String,
},
InvalidIncludeGraphicsUnit {
unit: String,
},
InvalidIncludeGraphicsSize {
size: String,
},
InvalidIncludeGraphicsKey {
key: String,
},
CharNonNumericArgument {
value: String,
},
UnsupportedWideCharacter {
character: String,
},
EmptyWideCharacterInput,
UnknownStretchyElement {
label: String,
},
UnsupportedGroupTypeForSvgSpan,
LabelMissingBackslashPrefix,
InvalidGroupTypeForAccent,
UnsupportedStretchyPathCount {
count: usize,
},
UnsupportedSymbolFont {
symbol: String,
font: String,
},
FontMetricsNotFound {
font_family: String,
},
MarkupWriteFailure,
NewcommandRedefinition {
name: String,
},
RenewcommandNonexistent {
name: String,
},
InvalidNewcommandArgumentCount,
UnknownSpaceType {
name: String,
},
ExpectedToken {
expected: String,
found: String,
},
InvalidTokenAfterMacroPrefix {
token: String,
},
UnexpectedCharacter {
character: String,
},
InvalidMacroArgumentNumber {
value: String,
},
ExpectedMacroParameter {
expected: usize,
found: usize,
},
MacroDefinitionMismatch,
MacroDelimiterLengthMismatch,
MacroTooManyExpansions,
MacroIncompletePlaceholder,
MacroStackUnexpectedlyEmpty,
ExtraCloseBrace,
ExpectedControlSequence,
ExpectedMacroDefinition,
FunctionMissingArguments {
func: String,
context: String,
},
FunctionDisallowedInMode {
func: String,
mode: Mode,
},
UndefinedControlSequence {
name: String,
},
UnexpectedEndOfMacroArgument {
expected: String,
},
InvalidColor {
color: String,
},
ExpectedGroupAs {
context: String,
},
LimitsMustFollowBase,
DoubleSuperscript,
DoubleSubscript,
MakeOrdExpectedNode,
MultipleInfixOperators,
InfixOperatorAtStart,
InvalidDelimiterAfter {
delimiter: String,
function: String,
},
InvalidDelimiterTypeAfter {
function: String,
},
ExpectedNode {
node: NodeType,
},
ExpectedSupSubBaseNode {
node: NodeType,
},
ExpectedNodeOrSupSub {
node: NodeType,
},
StrictModeError {
message: String,
code: String,
},
UnrecognizedInfixGenfracCommand {
command: String,
},
IllegalDelimiter {
delim: String,
},
InvalidAttributeName {
attr: String,
},
InvalidUnit {
unit: String,
},
InvalidGroup {
group: String,
},
InvalidBaseDigit {
base: u32,
digit: String,
},
Mismatched {
what: String,
},
NoFunctionHandler {
name: String,
},
UnknownColumnAlignment {
alignment: String,
},
ExpectedRawStringFirstArgument,
HtmlDataKeyValueParseError,
UnrecognizedHtmlCommand,
ExpectedColorToken {
argument: &'static str,
},
ExpectedSizeArgument,
ExpectedSizeArgumentFor {
context: &'static str,
},
ArgumentMustBeSize {
position: &'static str,
},
ExpectedFunctionAfterPrefix,
ExpectedRightAfterLeft,
MiddleWithoutPrecedingLeft,
LapRequiresSingleArgument,
SupSubMissingSupOrSub,
ExpectedBaseInSupSub,
ExpectedHorizBraceBase,
ExpectedHorizBraceOrSupSub,
CancelFunctionSingleArgument,
AboveArgumentMustBeSize,
ArgumentMustBeUrl {
context: &'static str,
},
CommandNotTrusted {
name: &'static str,
},
EmptyDelimiterCharacter,
StylingTakesNoArguments,
GeneratedOrdMissingClasses,
SizingTakesNoArguments,
EnvironmentHandlerNotImplemented,
CharArgumentMustBeOrdGroup,
CharOrdGroupContentInvalid,
MissingArrowCharacterAfterAt,
InvalidArrowCharacter,
TooManyTabCharacters,
ExpectedColumnAlignmentCharacter,
ExpectedOrdGroupOrSymbolNode,
ExpectedAlignmentSpecifier,
SubarrayTooManyColumns {
subarray: &'static str,
},
InvalidNumberOfColumns,
FailedToCreateCombinedToken,
PrimitiveArgumentCannotBeOptional,
CurrentColorMustBeString,
ExpectedFirstChildDomSpan,
ExpectedSecondChildDomSpan,
EmptyMacroExpanderStack,
CharMissingArgument,
MultipleTag,
TagNotAllowedInInlineMode,
EmptyLookupSymbolInput,
OptionalSmashArgumentMustBeOrdGroup,
AbovefracSecondArgumentNotInfix,
FailedToAppendChild {
details: String,
},
UnbalancedNamespaceDestruction,
MissingDocument,
UnknownDelimiterLabel,
UnknownAccent {
accent: String,
},
UnsupportedAccentInMode {
accent: String,
mode: Mode,
},
ExpectedSymbolNode {
context: &'static str,
},
ExpectedGroupAfterSymbol {
symbol: String,
},
NullArgument,
VerbAssertionFailed,
VerbMissingDelimiter,
IncludeGraphicsExpectedUrl,
InvalidNodeTypeForBuilder {
builder: &'static str,
},
InvalidCharCodePoint {
code: String,
},
NewlineNodeNotFound,
EnumParse(ParseError),
ParseNode(ParseNodeError),
}
Expand description
Describes the specific reason for a ParseError
.
Variants§
InvalidArrayStretch
DisplayModeOnly
ExpectedArrayDelimiter
InvalidSeparatorType
TooManyMathInRow
ExpectedClosingBracket
FunctionOnlyInArray
ExpectedCdDelimiter
MissingCdArrowChar
InvalidCdArrowSpecifier
InvalidSize
UnknownGroupType
UnrecognizedGenfracCommand
InvalidGenfracStyle
InvalidEnvironmentName
NoSuchEnvironment
ExpectedEnvironmentAfterEnd
MismatchedEnvironmentEnd
InvalidIncludeGraphicsNumber
InvalidIncludeGraphicsUnit
InvalidIncludeGraphicsSize
InvalidIncludeGraphicsKey
CharNonNumericArgument
UnsupportedWideCharacter
EmptyWideCharacterInput
UnknownStretchyElement
UnsupportedGroupTypeForSvgSpan
LabelMissingBackslashPrefix
InvalidGroupTypeForAccent
UnsupportedStretchyPathCount
UnsupportedSymbolFont
FontMetricsNotFound
MarkupWriteFailure
NewcommandRedefinition
RenewcommandNonexistent
InvalidNewcommandArgumentCount
UnknownSpaceType
ExpectedToken
InvalidTokenAfterMacroPrefix
UnexpectedCharacter
InvalidMacroArgumentNumber
ExpectedMacroParameter
MacroDefinitionMismatch
MacroDelimiterLengthMismatch
MacroTooManyExpansions
MacroIncompletePlaceholder
MacroStackUnexpectedlyEmpty
ExtraCloseBrace
ExpectedControlSequence
ExpectedMacroDefinition
FunctionMissingArguments
FunctionDisallowedInMode
UndefinedControlSequence
UnexpectedEndOfMacroArgument
InvalidColor
ExpectedGroupAs
LimitsMustFollowBase
DoubleSuperscript
DoubleSubscript
MakeOrdExpectedNode
MultipleInfixOperators
InfixOperatorAtStart
InvalidDelimiterAfter
InvalidDelimiterTypeAfter
ExpectedNode
ExpectedSupSubBaseNode
ExpectedNodeOrSupSub
StrictModeError
UnrecognizedInfixGenfracCommand
IllegalDelimiter
InvalidAttributeName
InvalidUnit
InvalidGroup
InvalidBaseDigit
Mismatched
NoFunctionHandler
UnknownColumnAlignment
ExpectedRawStringFirstArgument
HtmlDataKeyValueParseError
UnrecognizedHtmlCommand
ExpectedColorToken
ExpectedSizeArgument
ExpectedSizeArgumentFor
ArgumentMustBeSize
ExpectedFunctionAfterPrefix
ExpectedRightAfterLeft
MiddleWithoutPrecedingLeft
LapRequiresSingleArgument
SupSubMissingSupOrSub
ExpectedBaseInSupSub
ExpectedHorizBraceBase
ExpectedHorizBraceOrSupSub
CancelFunctionSingleArgument
AboveArgumentMustBeSize
ArgumentMustBeUrl
CommandNotTrusted
EmptyDelimiterCharacter
StylingTakesNoArguments
GeneratedOrdMissingClasses
SizingTakesNoArguments
EnvironmentHandlerNotImplemented
CharArgumentMustBeOrdGroup
CharOrdGroupContentInvalid
MissingArrowCharacterAfterAt
InvalidArrowCharacter
TooManyTabCharacters
ExpectedColumnAlignmentCharacter
ExpectedOrdGroupOrSymbolNode
ExpectedAlignmentSpecifier
SubarrayTooManyColumns
InvalidNumberOfColumns
FailedToCreateCombinedToken
PrimitiveArgumentCannotBeOptional
CurrentColorMustBeString
ExpectedFirstChildDomSpan
ExpectedSecondChildDomSpan
EmptyMacroExpanderStack
CharMissingArgument
MultipleTag
TagNotAllowedInInlineMode
EmptyLookupSymbolInput
OptionalSmashArgumentMustBeOrdGroup
AbovefracSecondArgumentNotInfix
FailedToAppendChild
UnbalancedNamespaceDestruction
MissingDocument
UnknownDelimiterLabel
UnknownAccent
UnsupportedAccentInMode
ExpectedSymbolNode
ExpectedGroupAfterSymbol
NullArgument
VerbAssertionFailed
VerbMissingDelimiter
IncludeGraphicsExpectedUrl
InvalidNodeTypeForBuilder
InvalidCharCodePoint
NewlineNodeNotFound
EnumParse(ParseError)
ParseNode(ParseNodeError)
Trait Implementations§
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
Source§impl Error for ParseErrorKind
impl Error for ParseErrorKind
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 From<ParseErrorKind> for ParseError
impl From<ParseErrorKind> for ParseError
Source§fn from(kind: ParseErrorKind) -> Self
fn from(kind: ParseErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<ParseNodeError> for ParseErrorKind
impl From<ParseNodeError> for ParseErrorKind
Source§fn from(source: ParseNodeError) -> Self
fn from(source: ParseNodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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