pub enum CastOp {
Show 13 variants
Trunc,
ZExt,
SExt,
FpToUi,
FpToSi,
UiToFp,
SiToFp,
FpTrunc,
FpExt,
PtrToInt,
IntToPtr,
BitCast,
AddrSpaceCast,
}Expand description
A cast opcode (LLVM’s CastOpcodes).
Variants§
Trunc
Truncate an integer.
ZExt
Zero-extend an integer.
SExt
Sign-extend an integer.
FpToUi
Float to unsigned integer.
FpToSi
Float to signed integer.
UiToFp
Unsigned integer to float.
SiToFp
Signed integer to float.
FpTrunc
Truncate a float.
FpExt
Extend a float.
PtrToInt
Pointer to integer.
IntToPtr
Integer to pointer.
BitCast
Reinterpret the bits as another type.
AddrSpaceCast
A pointer into another address space.
Trait Implementations§
impl Copy for CastOp
impl Eq for CastOp
impl StructuralPartialEq for CastOp
Auto Trait Implementations§
impl Forget for CastOp
impl Freeze for CastOp
impl RefUnwindSafe for CastOp
impl Send for CastOp
impl Sync for CastOp
impl Unpin for CastOp
impl UnsafeUnpin for CastOp
impl UnwindSafe for CastOp
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