#[repr(u8)]pub enum CastOpcode {
Show 13 variants
Trunc = 0,
ZExt = 1,
SExt = 2,
FpToUi = 3,
FpToSi = 4,
UiToFp = 5,
SiToFp = 6,
FpTrunc = 7,
FpExt = 8,
PtrToInt = 9,
IntToPtr = 10,
Bitcast = 11,
Addrspace = 12,
}Expand description
These are values used in the bitcode files to encode which
cast a CST_CODE_CE_CAST refers to.
Variants§
Trunc = 0
ZExt = 1
SExt = 2
FpToUi = 3
FpToSi = 4
UiToFp = 5
SiToFp = 6
FpTrunc = 7
FpExt = 8
PtrToInt = 9
IntToPtr = 10
Bitcast = 11
Addrspace = 12
Trait Implementations§
Source§impl Debug for CastOpcode
impl Debug for CastOpcode
Source§impl TryFrom<u8> for CastOpcode
impl TryFrom<u8> for CastOpcode
Source§type Error = TryFromPrimitiveError<CastOpcode>
type Error = TryFromPrimitiveError<CastOpcode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for CastOpcode
impl TryFromPrimitive for CastOpcode
const NAME: &'static str = "CastOpcode"
type Primitive = u8
type Error = TryFromPrimitiveError<CastOpcode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for CastOpcode
impl RefUnwindSafe for CastOpcode
impl Send for CastOpcode
impl Sync for CastOpcode
impl Unpin for CastOpcode
impl UnsafeUnpin for CastOpcode
impl UnwindSafe for CastOpcode
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