Enum stable_mir::mir::body::CastKind
source · pub enum CastKind {
PointerExposeAddress,
PointerFromExposedAddress,
PointerCoercion(PointerCoercion),
DynStar,
IntToInt,
FloatToInt,
FloatToFloat,
IntToFloat,
PtrToPtr,
FnPtrToPtr,
Transmute,
}
Variants§
PointerExposeAddress
PointerFromExposedAddress
PointerCoercion(PointerCoercion)
DynStar
IntToInt
FloatToInt
FloatToFloat
IntToFloat
PtrToPtr
FnPtrToPtr
Transmute
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CastKind
impl Send for CastKind
impl Sync for CastKind
impl Unpin for CastKind
impl UnwindSafe for CastKind
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
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:
PointerExposeAddress
: 0 bytesPointerFromExposedAddress
: 0 bytesPointerCoercion
: 1 byteDynStar
: 0 bytesIntToInt
: 0 bytesFloatToInt
: 0 bytesFloatToFloat
: 0 bytesIntToFloat
: 0 bytesPtrToPtr
: 0 bytesFnPtrToPtr
: 0 bytesTransmute
: 0 bytes