Enum rustc_typeck::check::cast::CastError [−][src]
pub enum CastError {
Show 13 variants
ErrorReported,
CastToBool,
CastToChar,
DifferingKinds,
SizedUnsizedCast,
IllegalCast,
NeedDeref,
NeedViaPtr,
NeedViaThinPtr,
NeedViaInt,
NonScalar,
UnknownExprPtrKind,
UnknownCastPtrKind,
}
Variants
Cast of thin to fat raw ptr (e.g., *const () as *const [u8]
).
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for CastError
impl UnwindSafe for CastError
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
ErrorReported
: 0 bytesCastToBool
: 0 bytesCastToChar
: 0 bytesDifferingKinds
: 0 bytesSizedUnsizedCast
: 0 bytesIllegalCast
: 0 bytesNeedDeref
: 0 bytesNeedViaPtr
: 0 bytesNeedViaThinPtr
: 0 bytesNeedViaInt
: 0 bytesNonScalar
: 0 bytesUnknownExprPtrKind
: 0 bytesUnknownCastPtrKind
: 0 bytes