#[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 Clone for CastOpcode
impl Clone for CastOpcode
Source§fn clone(&self) -> CastOpcode
fn clone(&self) -> CastOpcode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CastOpcode
Source§impl Debug for CastOpcode
impl Debug for CastOpcode
impl Eq for CastOpcode
Source§impl PartialEq for CastOpcode
impl PartialEq for CastOpcode
Source§fn eq(&self, other: &CastOpcode) -> bool
fn eq(&self, other: &CastOpcode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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