pub enum ConvertParseTreeError {
Show 53 variants
PubUseNotSupported {
span: Span,
},
FunctionArbitraryExpression {
span: Span,
},
GenericsNotSupportedHere {
span: Span,
},
MultipleGenericsNotSupported {
span: Span,
},
TupleIndexOutOfRange {
span: Span,
},
ShlNotImplemented {
span: Span,
},
ShrNotImplemented {
span: Span,
},
BitXorNotImplemented {
span: Span,
},
IntTySuffixNotSupported {
span: Span,
},
IntLiteralOutOfRange {
span: Span,
},
IntLiteralExpected {
span: Span,
},
QualifiedPathRootsNotImplemented {
span: Span,
},
CharLiteralsNotImplemented {
span: Span,
},
HexLiteralLength {
span: Span,
},
BinaryLiteralLength {
span: Span,
},
U8LiteralOutOfRange {
span: Span,
},
U16LiteralOutOfRange {
span: Span,
},
U32LiteralOutOfRange {
span: Span,
},
U64LiteralOutOfRange {
span: Span,
},
SignedIntegersNotSupported {
span: Span,
},
RefVariablesNotSupported {
span: Span,
},
LiteralPatternsNotSupportedHere {
span: Span,
},
ConstantPatternsNotSupportedHere {
span: Span,
},
ConstructorPatternsNotSupportedHere {
span: Span,
},
StructPatternsNotSupportedHere {
span: Span,
},
WildcardPatternsNotSupportedHere {
span: Span,
},
TuplePatternsNotSupportedHere {
span: Span,
},
RefPatternsNotSupportedHere {
span: Span,
},
ConstructorPatternOneArg {
span: Span,
},
ConstructorPatternSubPatterns {
span: Span,
},
PathsNotSupportedHere {
span: Span,
},
FullySpecifiedTypesNotSupported {
span: Span,
},
ContractCallerOneGenericArg {
span: Span,
},
ContractCallerNamedTypeGenericArg {
span: Span,
},
InvalidAttributeArgument {
attribute: String,
span: Span,
},
ConstrainedNonExistentType {
ty_name: Ident,
span: Span,
},
GetStorageKeyTooManyArgs {
span: Span,
},
RecursiveType {
span: Span,
},
DuplicateEnumVariant {
name: Ident,
span: Span,
},
DuplicateStorageField {
name: Ident,
span: Span,
},
DuplicateConfigurable {
name: Ident,
span: Span,
},
MultipleConfigurableBlocksInModule {
span: Span,
},
DuplicateStructField {
name: Ident,
span: Span,
},
DuplicateParameterIdentifier {
name: Ident,
span: Span,
},
SelfParameterNotAllowedForFn {
fn_kind: String,
span: Span,
},
TestFnOnlyAllowedAtModuleLevel {
span: Span,
},
SelfImplForContract {
span: Span,
},
CannotDocCommentDependency {
span: Span,
},
CannotAnnotateDependency {
span: Span,
},
ExpectedDependencyAtBeginning {
span: Span,
},
RefExprNotYetSupported {
span: Span,
},
DerefExprNotYetSupported {
span: Span,
},
ConstantRequiresExpression {
span: Span,
},
}
Variants§
PubUseNotSupported
FunctionArbitraryExpression
GenericsNotSupportedHere
MultipleGenericsNotSupported
TupleIndexOutOfRange
ShlNotImplemented
ShrNotImplemented
BitXorNotImplemented
IntTySuffixNotSupported
IntLiteralOutOfRange
IntLiteralExpected
QualifiedPathRootsNotImplemented
CharLiteralsNotImplemented
HexLiteralLength
BinaryLiteralLength
U8LiteralOutOfRange
U16LiteralOutOfRange
U32LiteralOutOfRange
U64LiteralOutOfRange
SignedIntegersNotSupported
RefVariablesNotSupported
LiteralPatternsNotSupportedHere
ConstantPatternsNotSupportedHere
ConstructorPatternsNotSupportedHere
StructPatternsNotSupportedHere
WildcardPatternsNotSupportedHere
TuplePatternsNotSupportedHere
RefPatternsNotSupportedHere
ConstructorPatternOneArg
ConstructorPatternSubPatterns
PathsNotSupportedHere
FullySpecifiedTypesNotSupported
ContractCallerOneGenericArg
ContractCallerNamedTypeGenericArg
InvalidAttributeArgument
ConstrainedNonExistentType
GetStorageKeyTooManyArgs
RecursiveType
DuplicateEnumVariant
DuplicateStorageField
DuplicateConfigurable
MultipleConfigurableBlocksInModule
DuplicateStructField
DuplicateParameterIdentifier
SelfParameterNotAllowedForFn
TestFnOnlyAllowedAtModuleLevel
SelfImplForContract
CannotDocCommentDependency
CannotAnnotateDependency
ExpectedDependencyAtBeginning
RefExprNotYetSupported
DerefExprNotYetSupported
ConstantRequiresExpression
Trait Implementations§
source§impl Clone for ConvertParseTreeError
impl Clone for ConvertParseTreeError
source§fn clone(&self) -> ConvertParseTreeError
fn clone(&self) -> ConvertParseTreeError
Returns a copy 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 moresource§impl Debug for ConvertParseTreeError
impl Debug for ConvertParseTreeError
source§impl Display for ConvertParseTreeError
impl Display for ConvertParseTreeError
source§impl Error for ConvertParseTreeError
impl Error for ConvertParseTreeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConvertParseTreeError> for CompileError
impl From<ConvertParseTreeError> for CompileError
source§fn from(source: ConvertParseTreeError) -> Self
fn from(source: ConvertParseTreeError) -> Self
Converts to this type from the input type.
source§impl Hash for ConvertParseTreeError
impl Hash for ConvertParseTreeError
source§impl PartialEq<ConvertParseTreeError> for ConvertParseTreeError
impl PartialEq<ConvertParseTreeError> for ConvertParseTreeError
source§fn eq(&self, other: &ConvertParseTreeError) -> bool
fn eq(&self, other: &ConvertParseTreeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConvertParseTreeError
impl StructuralEq for ConvertParseTreeError
impl StructuralPartialEq for ConvertParseTreeError
Auto Trait Implementations§
impl RefUnwindSafe for ConvertParseTreeError
impl Send for ConvertParseTreeError
impl Sync for ConvertParseTreeError
impl Unpin for ConvertParseTreeError
impl UnwindSafe for ConvertParseTreeError
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more