[][src]Struct cranelift_codegen::ir::immediates::V128Imm

pub struct V128Imm(pub [u8; 16]);

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 Clone for V128Imm[src]

impl Copy for V128Imm[src]

impl Debug for V128Imm[src]

impl Eq for V128Imm[src]

impl<'_> From<&'_ [u8]> for V128Imm[src]

impl From<V128Imm> for ConstantData[src]

impl Hash for V128Imm[src]

impl PartialEq<V128Imm> for V128Imm[src]

impl StructuralEq for V128Imm[src]

impl StructuralPartialEq for V128Imm[src]

Auto Trait Implementations

impl RefUnwindSafe for V128Imm

impl Send for V128Imm

impl Sync for V128Imm

impl Unpin for V128Imm

impl UnwindSafe for V128Imm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.