[−][src]Struct cranelift_codegen::ir::immediates::V128Imm
A 128-bit immediate operand.
This is used as an immediate value in SIMD instructions.
Methods
impl V128Imm[src]
pub fn bytes(&self) -> impl Iterator<Item = &u8>[src]
Iterate over the bytes in the constant.
pub fn to_vec(self) -> Vec<u8>[src]
Convert the immediate into a vector.
pub fn as_slice(&self) -> &[u8][src]
Convert the immediate into a slice.
Trait Implementations
impl From<u64> for V128Imm[src]
impl<'_> From<&'_ [u8]> for V128Imm[src]
impl Display for V128Imm[src]
impl Debug for V128Imm[src]
impl PartialEq<V128Imm> for V128Imm[src]
impl Eq for V128Imm[src]
impl FromStr for V128Imm[src]
type Err = &'static str
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, &'static str>[src]
impl Hash for V128Imm[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Copy for V128Imm[src]
impl FromIterator<bool> for V128Imm[src]
Special case for booleans since we have to decide the bit-width based on the number of items
fn from_iter<T: IntoIterator<Item = bool>>(iter: T) -> Self[src]
impl FromIterator<u8> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = u8>>(iter: T) -> Self[src]
impl FromIterator<i16> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = i16>>(iter: T) -> Self[src]
impl FromIterator<i32> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = i32>>(iter: T) -> Self[src]
impl FromIterator<Ieee32> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = Ieee32>>(iter: T) -> Self[src]
impl FromIterator<Imm64> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = Imm64>>(iter: T) -> Self[src]
impl FromIterator<Ieee64> for V128Imm[src]
fn from_iter<T: IntoIterator<Item = Ieee64>>(iter: T) -> Self[src]
impl Clone for V128Imm[src]
Auto Trait Implementations
impl Unpin for V128Imm
impl Send for V128Imm
impl Sync for V128Imm
impl UnwindSafe for V128Imm
impl RefUnwindSafe for V128Imm
Blanket Implementations
impl<T> From<T> for T[src]
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> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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,