[][src]Enum walrus::ir::LoadKind

pub enum LoadKind {
    I32 {
        atomic: bool,
    },
    I64 {
        atomic: bool,
    },
    F32,
    F64,
    V128,
    I32_8 {
        kind: ExtendedLoad,
    },
    I32_16 {
        kind: ExtendedLoad,
    },
    I64_8 {
        kind: ExtendedLoad,
    },
    I64_16 {
        kind: ExtendedLoad,
    },
    I64_32 {
        kind: ExtendedLoad,
    },
}

The different kinds of load instructions that are part of a Load IR node

Variants

I32

Fields of I32

atomic: bool
I64

Fields of I64

atomic: bool
F32
F64
V128
I32_8

Fields of I32_8

kind: ExtendedLoad
I32_16

Fields of I32_16

kind: ExtendedLoad
I64_8

Fields of I64_8

kind: ExtendedLoad
I64_16

Fields of I64_16

kind: ExtendedLoad
I64_32

Fields of I64_32

kind: ExtendedLoad

Methods

impl LoadKind[src]

pub fn width(&self) -> u32[src]

Returns the number of bytes loaded

pub fn atomic(&self) -> bool[src]

Returns if this is an atomic load

Trait Implementations

impl Clone for LoadKind[src]

impl Copy for LoadKind[src]

impl Debug for LoadKind[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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