pub enum ParseError {
Show 34 variants
ExpectedIdentifier,
ParseFloatError(ParseFloatError),
ParseIntError(ParseIntError),
RuleError(Box<Rule>),
IoError(Error),
Parser(Box<Error<Rule>>),
ParseColorError(ParseColorError),
UnknownColorName(String),
UnknownUnit(String),
UnexpectedToken,
MixedTupleArguments,
DuplicateNamedArgument(Identifier),
PositionalArgumentAfterNamed,
EmptyTupleExpression,
ParameterMissingTypeOrValue(Identifier),
DuplicateParameter(Identifier),
DuplicateArgument(Identifier),
InvalidMapKeyType(String),
DuplicatedMapType(Identifier),
DuplicateIdentifier(Identifier),
DuplicateTupleIdentifier(Identifier),
DuplicateTupleType(Type),
MissingFormatExpression,
StatementBetweenInit,
LoadSource(PathBuf),
GrammarRuleError(String),
InvalidQualifiedName(String),
InvalidIdentifier(String),
QualifiedNameIsNoId(QualifiedName),
IllegalWorkbenchStatement(SrcRef),
CodeBetweenInitializers(SrcRef),
StatementNotAllowedPriorInitializers(SrcRef),
NotAvailable,
UnknownType(String),
}
Expand description
Parsing errors
Variants§
ExpectedIdentifier
Expected identifier
ParseFloatError(ParseFloatError)
Error parsing floating point literal
ParseIntError(ParseIntError)
Error parsing integer literal
RuleError(Box<Rule>)
Parser rule error
IoError(Error)
IO Error
Parser(Box<Error<Rule>>)
Error in pest parser
ParseColorError(ParseColorError)
Error parsing color literal
UnknownColorName(String)
Unknown color name
UnknownUnit(String)
Unknown unit
UnexpectedToken
Unexpected token
MixedTupleArguments
Tuple expression contains both named and positional arguments
DuplicateNamedArgument(Identifier)
Duplicate named argument
PositionalArgumentAfterNamed
Positional argument after named argument
EmptyTupleExpression
Empty tuple expression
ParameterMissingTypeOrValue(Identifier)
Missing type or value for definition parameter
DuplicateParameter(Identifier)
Duplicate parameter
DuplicateArgument(Identifier)
Duplicate argument
InvalidMapKeyType(String)
Invalid map key type
DuplicatedMapType(Identifier)
Duplicated type name in map
DuplicateIdentifier(Identifier)
Duplicate identifier
DuplicateTupleIdentifier(Identifier)
Duplicate identifier in tuple
DuplicateTupleType(Type)
Duplicate unnamed type in tuple
MissingFormatExpression
Missing format expression
StatementBetweenInit
Statement between two init statements
LoadSource(PathBuf)
Loading of a source file failed
GrammarRuleError(String)
Grammar rule error
InvalidQualifiedName(String)
Grammar rule error
InvalidIdentifier(String)
Grammar rule error
QualifiedNameIsNoId(QualifiedName)
Qualified name cannot be converted into an Id
IllegalWorkbenchStatement(SrcRef)
Statement not allowed within workbenches
CodeBetweenInitializers(SrcRef)
Code Between initializers
StatementNotAllowedPriorInitializers(SrcRef)
Statement not allowed prior initializers
NotAvailable
Element is not available
UnknownType(String)
Unknown type
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for ParseError
impl From<Error> for ParseError
Source§impl From<ParseColorError> for ParseError
impl From<ParseColorError> for ParseError
Source§fn from(source: ParseColorError) -> Self
fn from(source: ParseColorError) -> Self
Source§impl From<ParseError> for EvalError
impl From<ParseError> for EvalError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ParseError> for ResolveError
impl From<ParseError> for ResolveError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<ParseFloatError> for ParseError
impl From<ParseFloatError> for ParseError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Source§impl From<ParseIntError> for ParseError
impl From<ParseIntError> for ParseError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Auto Trait Implementations§
impl Freeze for ParseError
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString
. Read more