[−][src]Enum cranelift_reader::DataValue
Represent a data value. Where Value is an SSA reference, DataValue is the type + value that would be referred to by a Value.
Variants
B(bool)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Implementations
impl DataValue
[src]
pub fn from_integer(
imm: Imm64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
[src]
imm: Imm64,
ty: Type
) -> Result<DataValue, DataValueCastFailure>
pub fn ty(&self) -> Type
[src]
pub fn is_vector(&self) -> bool
[src]
Return true if the value is a vector (i.e. DataValue::V128
).
Trait Implementations
impl Clone for DataValue
[src]
impl Debug for DataValue
[src]
impl Display for DataValue
[src]
impl From<[u8; 16]> for DataValue
[src]
impl From<bool> for DataValue
[src]
impl From<f32> for DataValue
[src]
impl From<f64> for DataValue
[src]
impl From<i16> for DataValue
[src]
impl From<i32> for DataValue
[src]
impl From<i64> for DataValue
[src]
impl From<i8> for DataValue
[src]
impl PartialEq<DataValue> for DataValue
[src]
impl StructuralPartialEq for DataValue
[src]
impl TryInto<[u8; 16]> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<[u8; 16], Self::Error>
[src]
impl TryInto<bool> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<bool, Self::Error>
[src]
impl TryInto<f32> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<f32, Self::Error>
[src]
impl TryInto<f64> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<f64, Self::Error>
[src]
impl TryInto<i16> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i16, Self::Error>
[src]
impl TryInto<i32> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i32, Self::Error>
[src]
impl TryInto<i64> for DataValue
[src]
type Error = DataValueCastFailure
The type returned in the event of a conversion error.
fn try_into(self) -> Result<i64, Self::Error>
[src]
impl TryInto<i8> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,