pub enum CastKind {
Bitcast,
Trunc,
Zext,
Sext,
FpToUi,
FpToSi,
UiToFp,
SiToFp,
}Expand description
Cast kind for type conversion instructions.
Variants§
Bitcast
Bitwise cast between types of the same size.
Trunc
Truncate a value to a smaller type.
Zext
Zero-extend a value to a larger type.
Sext
Sign-extend a value to a larger type.
FpToUi
Convert floating point to unsigned integer.
FpToSi
Convert floating point to signed integer.
UiToFp
Convert unsigned integer to floating point.
SiToFp
Convert signed integer to floating point.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CastKind
impl<'de> Deserialize<'de> for CastKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for CastKind
impl Eq for CastKind
impl StructuralPartialEq for CastKind
Auto Trait Implementations§
impl Freeze for CastKind
impl RefUnwindSafe for CastKind
impl Send for CastKind
impl Sync for CastKind
impl Unpin for CastKind
impl UnsafeUnpin 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