Enum cranelift_codegen::data_value::DataValue [−][src]
pub enum DataValue { B(bool), I8(i8), I16(i16), I32(i32), I64(i64), U8(u8), U16(u16), U32(u32), U64(u64), F32(Ieee32), F64(Ieee64), V128([u8; 16]), }
Expand description
Variants
B(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
F32(Ieee32)
F64(Ieee64)
Implementations
impl DataValue
[src]
impl DataValue
[src]pub fn from_integer(
imm: i64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
[src]
pub fn from_integer(
imm: i64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
[src]Try to cast an immediate integer (a wrapped i64
on most Cranelift instructions) to the
given Cranelift Type.
pub unsafe fn write_value_to(&self, p: *mut u128)
[src]
pub unsafe fn write_value_to(&self, p: *mut u128)
[src]Write a DataValue to a memory location.
Trait Implementations
impl PartialOrd<DataValue> for DataValue
[src]
impl PartialOrd<DataValue> for DataValue
[src]fn partial_cmp(&self, other: &DataValue) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DataValue) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl StructuralPartialEq for DataValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more