cranelift_codegen::ir::immediates

Trait IntoBytes

Source
pub trait IntoBytes {
    // Required method
    fn into_bytes(self) -> Vec<u8> ;
}
Expand description

Convert a type into a vector of bytes; all implementors in this file must use little-endian orderings of bytes to match WebAssembly’s little-endianness.

Required Methods§

Source

fn into_bytes(self) -> Vec<u8>

Return the little-endian byte representation of the implementing type.

Implementations on Foreign Types§

Source§

impl IntoBytes for i8

Source§

impl IntoBytes for i16

Source§

impl IntoBytes for i32

Source§

impl IntoBytes for u8

Source§

impl IntoBytes for Vec<u8>

Implementors§