wasmi_ir

Trait IntoShiftAmount

Source
pub trait IntoShiftAmount: Sized {
    // Required method
    fn into_shift_amount(self) -> Option<ShiftAmount<Self>>;
}
Expand description

Integer ypes that can be used as shift amount in shift or rotate instructions.

Required Methods§

Source

fn into_shift_amount(self) -> Option<ShiftAmount<Self>>

Converts self into a ShiftAmount if possible.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IntoShiftAmount for i32

Source§

impl IntoShiftAmount for i64

Implementors§