Enum chalk_integration::error::RustIrError
source · pub enum RustIrError {
Show 19 variants
InvalidParameterName(Identifier),
InvalidTraitName(Identifier),
NotTrait(Identifier),
NotStruct(Identifier),
DuplicateOrShadowedParameters,
AutoTraitAssociatedTypes(Identifier),
AutoTraitParameters(Identifier),
AutoTraitWhereClauses(Identifier),
InvalidFundamentalTypesParameters(Identifier),
NegativeImplAssociatedValues(Identifier),
MissingAssociatedType(Identifier),
IncorrectNumberOfVarianceParameters {
identifier: Identifier,
expected: usize,
actual: usize,
},
IncorrectNumberOfTypeParameters {
identifier: Identifier,
expected: usize,
actual: usize,
},
IncorrectNumberOfAssociatedTypeParameters {
identifier: Identifier,
expected: usize,
actual: usize,
},
IncorrectParameterKind {
identifier: Identifier,
expected: Kind,
actual: Kind,
},
IncorrectTraitParameterKind {
identifier: Identifier,
expected: Kind,
actual: Kind,
},
IncorrectAssociatedTypeParameterKind {
identifier: Identifier,
expected: Kind,
actual: Kind,
},
CannotApplyTypeParameter(Identifier),
InvalidExternAbi(DefaultAtom),
}
Variants§
InvalidParameterName(Identifier)
InvalidTraitName(Identifier)
NotTrait(Identifier)
NotStruct(Identifier)
DuplicateOrShadowedParameters
AutoTraitAssociatedTypes(Identifier)
AutoTraitParameters(Identifier)
AutoTraitWhereClauses(Identifier)
InvalidFundamentalTypesParameters(Identifier)
NegativeImplAssociatedValues(Identifier)
MissingAssociatedType(Identifier)
IncorrectNumberOfVarianceParameters
IncorrectNumberOfTypeParameters
IncorrectNumberOfAssociatedTypeParameters
IncorrectParameterKind
IncorrectTraitParameterKind
IncorrectAssociatedTypeParameterKind
CannotApplyTypeParameter(Identifier)
InvalidExternAbi(DefaultAtom)
Trait Implementations§
source§impl Debug for RustIrError
impl Debug for RustIrError
source§impl Display for RustIrError
impl Display for RustIrError
source§impl Error for RustIrError
impl Error for RustIrError
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<RustIrError> for ChalkError
impl From<RustIrError> for ChalkError
source§fn from(value: RustIrError) -> Self
fn from(value: RustIrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustIrError
impl RefUnwindSafe for RustIrError
impl Send for RustIrError
impl Sync for RustIrError
impl Unpin for RustIrError
impl UnwindSafe for RustIrError
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
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.