pub enum TypeSubstitutionError {
ExpectedAbsolutePath(Span),
EmptySubstitutePath(Span),
ExpectedAngleBracketGenerics(Span),
InvalidFromType(Span),
InvalidToType(Span),
NoMatchingFromType(Span),
}
Expand description
Error attempting to do type substitution.
Variants§
ExpectedAbsolutePath(Span)
Substitute “to” type must be an absolute path.
EmptySubstitutePath(Span)
Substitute types must have a valid path.
ExpectedAngleBracketGenerics(Span)
From/To substitution types should use angle bracket generics.
InvalidFromType(Span)
Source substitute type must be an ident.
InvalidToType(Span)
Target type is invalid.
NoMatchingFromType(Span)
Target ident doesn’t correspond to any source type.
Trait Implementations§
source§impl Debug for TypeSubstitutionError
impl Debug for TypeSubstitutionError
source§impl Display for TypeSubstitutionError
impl Display for TypeSubstitutionError
source§impl Error for TypeSubstitutionError
impl Error for TypeSubstitutionError
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<TypeSubstitutionError> for CodegenError
impl From<TypeSubstitutionError> for CodegenError
source§fn from(source: TypeSubstitutionError) -> Self
fn from(source: TypeSubstitutionError) -> Self
Converts to this type from the input type.