Trait cranelift_interpreter::value::DataValueExt

source ·
pub trait DataValueExt: Sized {
Show 64 methods // Required methods fn int(n: i128, ty: Type) -> ValueResult<Self>; fn into_int_signed(self) -> ValueResult<i128>; fn into_int_unsigned(self) -> ValueResult<u128>; fn float(n: u64, ty: Type) -> ValueResult<Self>; fn into_float(self) -> ValueResult<f64>; fn is_float(&self) -> bool; fn is_nan(&self) -> ValueResult<bool>; fn bool(b: bool, vec_elem: bool, ty: Type) -> ValueResult<Self>; fn into_bool(self) -> ValueResult<bool>; fn vector(v: [u8; 16], ty: Type) -> ValueResult<Self>; fn into_array(&self) -> ValueResult<[u8; 16]>; fn convert(self, kind: ValueConversionKind) -> ValueResult<Self>; fn concat(self, other: Self) -> ValueResult<Self>; fn is_negative(&self) -> ValueResult<bool>; fn is_zero(&self) -> ValueResult<bool>; fn umax(self, other: Self) -> ValueResult<Self>; fn smax(self, other: Self) -> ValueResult<Self>; fn umin(self, other: Self) -> ValueResult<Self>; fn smin(self, other: Self) -> ValueResult<Self>; fn uno(&self, other: &Self) -> ValueResult<bool>; fn add(self, other: Self) -> ValueResult<Self>; fn sub(self, other: Self) -> ValueResult<Self>; fn mul(self, other: Self) -> ValueResult<Self>; fn udiv(self, other: Self) -> ValueResult<Self>; fn sdiv(self, other: Self) -> ValueResult<Self>; fn urem(self, other: Self) -> ValueResult<Self>; fn srem(self, other: Self) -> ValueResult<Self>; fn sqrt(self) -> ValueResult<Self>; fn fma(self, a: Self, b: Self) -> ValueResult<Self>; fn abs(self) -> ValueResult<Self>; fn uadd_checked(self, other: Self) -> ValueResult<Option<Self>>; fn sadd_checked(self, other: Self) -> ValueResult<Option<Self>>; fn uadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn sadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn usub_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn ssub_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn umul_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn smul_overflow(self, other: Self) -> ValueResult<(Self, bool)>; fn neg(self) -> ValueResult<Self>; fn copysign(self, sign: Self) -> ValueResult<Self>; fn ceil(self) -> ValueResult<Self>; fn floor(self) -> ValueResult<Self>; fn trunc(self) -> ValueResult<Self>; fn nearest(self) -> ValueResult<Self>; fn uadd_sat(self, other: Self) -> ValueResult<Self>; fn sadd_sat(self, other: Self) -> ValueResult<Self>; fn usub_sat(self, other: Self) -> ValueResult<Self>; fn ssub_sat(self, other: Self) -> ValueResult<Self>; fn shl(self, other: Self) -> ValueResult<Self>; fn ushr(self, other: Self) -> ValueResult<Self>; fn sshr(self, other: Self) -> ValueResult<Self>; fn rotl(self, other: Self) -> ValueResult<Self>; fn rotr(self, other: Self) -> ValueResult<Self>; fn and(self, other: Self) -> ValueResult<Self>; fn or(self, other: Self) -> ValueResult<Self>; fn xor(self, other: Self) -> ValueResult<Self>; fn not(self) -> ValueResult<Self>; fn count_ones(self) -> ValueResult<Self>; fn leading_ones(self) -> ValueResult<Self>; fn leading_zeros(self) -> ValueResult<Self>; fn trailing_zeros(self) -> ValueResult<Self>; fn reverse_bits(self) -> ValueResult<Self>; fn swap_bytes(self) -> ValueResult<Self>; fn iter_lanes(&self, ty: Type) -> ValueResult<DataValueIterator>;
}

Required Methods§

source

fn int(n: i128, ty: Type) -> ValueResult<Self>

source

fn into_int_signed(self) -> ValueResult<i128>

source

fn into_int_unsigned(self) -> ValueResult<u128>

source

fn float(n: u64, ty: Type) -> ValueResult<Self>

source

fn into_float(self) -> ValueResult<f64>

source

fn is_float(&self) -> bool

source

fn is_nan(&self) -> ValueResult<bool>

source

fn bool(b: bool, vec_elem: bool, ty: Type) -> ValueResult<Self>

source

fn into_bool(self) -> ValueResult<bool>

source

fn vector(v: [u8; 16], ty: Type) -> ValueResult<Self>

source

fn into_array(&self) -> ValueResult<[u8; 16]>

source

fn convert(self, kind: ValueConversionKind) -> ValueResult<Self>

source

fn concat(self, other: Self) -> ValueResult<Self>

source

fn is_negative(&self) -> ValueResult<bool>

source

fn is_zero(&self) -> ValueResult<bool>

source

fn umax(self, other: Self) -> ValueResult<Self>

source

fn smax(self, other: Self) -> ValueResult<Self>

source

fn umin(self, other: Self) -> ValueResult<Self>

source

fn smin(self, other: Self) -> ValueResult<Self>

source

fn uno(&self, other: &Self) -> ValueResult<bool>

source

fn add(self, other: Self) -> ValueResult<Self>

source

fn sub(self, other: Self) -> ValueResult<Self>

source

fn mul(self, other: Self) -> ValueResult<Self>

source

fn udiv(self, other: Self) -> ValueResult<Self>

source

fn sdiv(self, other: Self) -> ValueResult<Self>

source

fn urem(self, other: Self) -> ValueResult<Self>

source

fn srem(self, other: Self) -> ValueResult<Self>

source

fn sqrt(self) -> ValueResult<Self>

source

fn fma(self, a: Self, b: Self) -> ValueResult<Self>

source

fn abs(self) -> ValueResult<Self>

source

fn uadd_checked(self, other: Self) -> ValueResult<Option<Self>>

source

fn sadd_checked(self, other: Self) -> ValueResult<Option<Self>>

source

fn uadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn sadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn usub_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn ssub_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn umul_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn smul_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source

fn neg(self) -> ValueResult<Self>

source

fn copysign(self, sign: Self) -> ValueResult<Self>

source

fn ceil(self) -> ValueResult<Self>

source

fn floor(self) -> ValueResult<Self>

source

fn trunc(self) -> ValueResult<Self>

source

fn nearest(self) -> ValueResult<Self>

source

fn uadd_sat(self, other: Self) -> ValueResult<Self>

source

fn sadd_sat(self, other: Self) -> ValueResult<Self>

source

fn usub_sat(self, other: Self) -> ValueResult<Self>

source

fn ssub_sat(self, other: Self) -> ValueResult<Self>

source

fn shl(self, other: Self) -> ValueResult<Self>

source

fn ushr(self, other: Self) -> ValueResult<Self>

source

fn sshr(self, other: Self) -> ValueResult<Self>

source

fn rotl(self, other: Self) -> ValueResult<Self>

source

fn rotr(self, other: Self) -> ValueResult<Self>

source

fn and(self, other: Self) -> ValueResult<Self>

source

fn or(self, other: Self) -> ValueResult<Self>

source

fn xor(self, other: Self) -> ValueResult<Self>

source

fn not(self) -> ValueResult<Self>

source

fn count_ones(self) -> ValueResult<Self>

source

fn leading_ones(self) -> ValueResult<Self>

source

fn leading_zeros(self) -> ValueResult<Self>

source

fn trailing_zeros(self) -> ValueResult<Self>

source

fn reverse_bits(self) -> ValueResult<Self>

source

fn swap_bytes(self) -> ValueResult<Self>

source

fn iter_lanes(&self, ty: Type) -> ValueResult<DataValueIterator>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DataValueExt for DataValue

source§

fn int(n: i128, ty: Type) -> ValueResult<Self>

source§

fn into_int_signed(self) -> ValueResult<i128>

source§

fn into_int_unsigned(self) -> ValueResult<u128>

source§

fn float(bits: u64, ty: Type) -> ValueResult<Self>

source§

fn into_float(self) -> ValueResult<f64>

source§

fn is_float(&self) -> bool

source§

fn is_nan(&self) -> ValueResult<bool>

source§

fn bool(b: bool, vec_elem: bool, ty: Type) -> ValueResult<Self>

source§

fn into_bool(self) -> ValueResult<bool>

source§

fn vector(v: [u8; 16], ty: Type) -> ValueResult<Self>

source§

fn into_array(&self) -> ValueResult<[u8; 16]>

source§

fn convert(self, kind: ValueConversionKind) -> ValueResult<Self>

source§

fn concat(self, other: Self) -> ValueResult<Self>

source§

fn is_negative(&self) -> ValueResult<bool>

source§

fn is_zero(&self) -> ValueResult<bool>

source§

fn umax(self, other: Self) -> ValueResult<Self>

source§

fn smax(self, other: Self) -> ValueResult<Self>

source§

fn umin(self, other: Self) -> ValueResult<Self>

source§

fn smin(self, other: Self) -> ValueResult<Self>

source§

fn uno(&self, other: &Self) -> ValueResult<bool>

source§

fn add(self, other: Self) -> ValueResult<Self>

source§

fn sub(self, other: Self) -> ValueResult<Self>

source§

fn mul(self, other: Self) -> ValueResult<Self>

source§

fn sdiv(self, other: Self) -> ValueResult<Self>

source§

fn udiv(self, other: Self) -> ValueResult<Self>

source§

fn srem(self, other: Self) -> ValueResult<Self>

source§

fn urem(self, other: Self) -> ValueResult<Self>

source§

fn sqrt(self) -> ValueResult<Self>

source§

fn fma(self, b: Self, c: Self) -> ValueResult<Self>

source§

fn abs(self) -> ValueResult<Self>

source§

fn sadd_checked(self, other: Self) -> ValueResult<Option<Self>>

source§

fn uadd_checked(self, other: Self) -> ValueResult<Option<Self>>

source§

fn sadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn uadd_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn ssub_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn usub_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn smul_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn umul_overflow(self, other: Self) -> ValueResult<(Self, bool)>

source§

fn neg(self) -> ValueResult<Self>

source§

fn copysign(self, sign: Self) -> ValueResult<Self>

source§

fn ceil(self) -> ValueResult<Self>

source§

fn floor(self) -> ValueResult<Self>

source§

fn trunc(self) -> ValueResult<Self>

source§

fn nearest(self) -> ValueResult<Self>

source§

fn sadd_sat(self, other: Self) -> ValueResult<Self>

source§

fn uadd_sat(self, other: Self) -> ValueResult<Self>

source§

fn ssub_sat(self, other: Self) -> ValueResult<Self>

source§

fn usub_sat(self, other: Self) -> ValueResult<Self>

source§

fn shl(self, other: Self) -> ValueResult<Self>

source§

fn ushr(self, other: Self) -> ValueResult<Self>

source§

fn sshr(self, other: Self) -> ValueResult<Self>

source§

fn rotl(self, other: Self) -> ValueResult<Self>

source§

fn rotr(self, other: Self) -> ValueResult<Self>

source§

fn and(self, other: Self) -> ValueResult<Self>

source§

fn or(self, other: Self) -> ValueResult<Self>

source§

fn xor(self, other: Self) -> ValueResult<Self>

source§

fn not(self) -> ValueResult<Self>

source§

fn count_ones(self) -> ValueResult<Self>

source§

fn leading_ones(self) -> ValueResult<Self>

source§

fn leading_zeros(self) -> ValueResult<Self>

source§

fn trailing_zeros(self) -> ValueResult<Self>

source§

fn reverse_bits(self) -> ValueResult<Self>

source§

fn swap_bytes(self) -> ValueResult<Self>

source§

fn iter_lanes(&self, ty: Type) -> ValueResult<DataValueIterator>

Implementors§