Enum rustc_typeck::check::cast::CastError [−][src]
pub enum CastError {
Show 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 CastErrorimpl UnwindSafe for CastErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. 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