pub enum ParseError {
Show 29 variants
ParseFloatError(Refer<ParseFloatError>),
ParseIntError(Refer<ParseIntError>),
RuleNotFoundError(Box<Rule>),
IoError(Refer<Error>),
Parser(Box<Error<Rule>>),
ParseColorError(Refer<ParseColorError>),
UnknownColorName(Refer<String>),
UnknownUnit(Refer<String>),
UnexpectedToken(SrcRef),
MixedTupleArguments(SrcRef),
DuplicateNamedArgument(Identifier),
PositionalArgumentAfterNamed(SrcRef),
EmptyTupleExpression(SrcRef),
ParameterMissingTypeOrValue(Identifier),
DuplicateParameter(Identifier),
DuplicateArgument(Identifier),
DuplicatedMapType(Identifier),
DuplicateIdentifier(Identifier),
DuplicateTupleIdentifier(Identifier),
DuplicateTupleType(Refer<Type>),
MissingFormatExpression(SrcRef),
StatementBetweenInit(SrcRef),
LoadSource(Refer<PathBuf>),
GrammarRuleError(Refer<String>),
InvalidQualifiedName(Refer<String>),
InvalidIdentifier(Refer<String>),
QualifiedNameIsNoId(QualifiedName),
NotAvailable(SrcRef),
UnknownType(Refer<String>),
}Expand description
Parsing errors
Variants§
ParseFloatError(Refer<ParseFloatError>)
Error parsing floating point literal
ParseIntError(Refer<ParseIntError>)
Error parsing integer literal
RuleNotFoundError(Box<Rule>)
Parser rule not found error
IoError(Refer<Error>)
IO Error
Parser(Box<Error<Rule>>)
Error in pest parser
ParseColorError(Refer<ParseColorError>)
Error parsing color literal
UnknownColorName(Refer<String>)
Unknown color name
UnknownUnit(Refer<String>)
Unknown unit
UnexpectedToken(SrcRef)
Unexpected token
MixedTupleArguments(SrcRef)
Tuple expression contains both named and positional arguments
DuplicateNamedArgument(Identifier)
Duplicate named argument
PositionalArgumentAfterNamed(SrcRef)
Positional argument after named argument
EmptyTupleExpression(SrcRef)
Empty tuple expression
ParameterMissingTypeOrValue(Identifier)
Missing type or value for definition parameter
DuplicateParameter(Identifier)
Duplicate parameter
DuplicateArgument(Identifier)
Duplicate argument
DuplicatedMapType(Identifier)
Duplicated type name in map
DuplicateIdentifier(Identifier)
Duplicate id
DuplicateTupleIdentifier(Identifier)
Duplicate id in tuple
DuplicateTupleType(Refer<Type>)
Duplicate unnamed type in tuple
MissingFormatExpression(SrcRef)
Missing format expression
StatementBetweenInit(SrcRef)
Statement between two init statements
LoadSource(Refer<PathBuf>)
Loading of a source file failed
GrammarRuleError(Refer<String>)
Grammar rule error
InvalidQualifiedName(Refer<String>)
Grammar rule error
InvalidIdentifier(Refer<String>)
Grammar rule error
QualifiedNameIsNoId(QualifiedName)
Qualified name cannot be converted into an Id
NotAvailable(SrcRef)
Element is not available
UnknownType(Refer<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
1.30.0 · 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<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 SrcReferrer for ParseError
impl SrcReferrer for ParseError
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