cranelift_codegen_meta::shared::formats

Struct Formats

source
pub(crate) struct Formats {
Show 36 fields pub(crate) atomic_cas: Rc<InstructionFormat>, pub(crate) atomic_rmw: Rc<InstructionFormat>, pub(crate) binary: Rc<InstructionFormat>, pub(crate) binary_imm8: Rc<InstructionFormat>, pub(crate) binary_imm64: Rc<InstructionFormat>, pub(crate) branch_table: Rc<InstructionFormat>, pub(crate) brif: Rc<InstructionFormat>, pub(crate) call: Rc<InstructionFormat>, pub(crate) call_indirect: Rc<InstructionFormat>, pub(crate) cond_trap: Rc<InstructionFormat>, pub(crate) float_compare: Rc<InstructionFormat>, pub(crate) func_addr: Rc<InstructionFormat>, pub(crate) int_compare: Rc<InstructionFormat>, pub(crate) int_compare_imm: Rc<InstructionFormat>, pub(crate) int_add_trap: Rc<InstructionFormat>, pub(crate) jump: Rc<InstructionFormat>, pub(crate) load: Rc<InstructionFormat>, pub(crate) load_no_offset: Rc<InstructionFormat>, pub(crate) multiary: Rc<InstructionFormat>, pub(crate) nullary: Rc<InstructionFormat>, pub(crate) shuffle: Rc<InstructionFormat>, pub(crate) stack_load: Rc<InstructionFormat>, pub(crate) stack_store: Rc<InstructionFormat>, pub(crate) dynamic_stack_load: Rc<InstructionFormat>, pub(crate) dynamic_stack_store: Rc<InstructionFormat>, pub(crate) store: Rc<InstructionFormat>, pub(crate) store_no_offset: Rc<InstructionFormat>, pub(crate) ternary: Rc<InstructionFormat>, pub(crate) ternary_imm8: Rc<InstructionFormat>, pub(crate) trap: Rc<InstructionFormat>, pub(crate) unary: Rc<InstructionFormat>, pub(crate) unary_const: Rc<InstructionFormat>, pub(crate) unary_global_value: Rc<InstructionFormat>, pub(crate) unary_ieee32: Rc<InstructionFormat>, pub(crate) unary_ieee64: Rc<InstructionFormat>, pub(crate) unary_imm: Rc<InstructionFormat>,
}

Fields§

§atomic_cas: Rc<InstructionFormat>§atomic_rmw: Rc<InstructionFormat>§binary: Rc<InstructionFormat>§binary_imm8: Rc<InstructionFormat>§binary_imm64: Rc<InstructionFormat>§branch_table: Rc<InstructionFormat>§brif: Rc<InstructionFormat>§call: Rc<InstructionFormat>§call_indirect: Rc<InstructionFormat>§cond_trap: Rc<InstructionFormat>§float_compare: Rc<InstructionFormat>§func_addr: Rc<InstructionFormat>§int_compare: Rc<InstructionFormat>§int_compare_imm: Rc<InstructionFormat>§int_add_trap: Rc<InstructionFormat>§jump: Rc<InstructionFormat>§load: Rc<InstructionFormat>§load_no_offset: Rc<InstructionFormat>§multiary: Rc<InstructionFormat>§nullary: Rc<InstructionFormat>§shuffle: Rc<InstructionFormat>§stack_load: Rc<InstructionFormat>§stack_store: Rc<InstructionFormat>§dynamic_stack_load: Rc<InstructionFormat>§dynamic_stack_store: Rc<InstructionFormat>§store: Rc<InstructionFormat>§store_no_offset: Rc<InstructionFormat>§ternary: Rc<InstructionFormat>§ternary_imm8: Rc<InstructionFormat>§trap: Rc<InstructionFormat>§unary: Rc<InstructionFormat>§unary_const: Rc<InstructionFormat>§unary_global_value: Rc<InstructionFormat>§unary_ieee32: Rc<InstructionFormat>§unary_ieee64: Rc<InstructionFormat>§unary_imm: Rc<InstructionFormat>

Implementations§

source§

impl Formats

source

pub fn new(imm: &Immediates, entities: &EntityRefs) -> Self

Auto Trait Implementations§

§

impl Freeze for Formats

§

impl !RefUnwindSafe for Formats

§

impl !Send for Formats

§

impl !Sync for Formats

§

impl Unpin for Formats

§

impl !UnwindSafe for Formats

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.