[][src]Trait cranelift_codegen::ir::immediates::IntoBytes

pub trait IntoBytes {
    fn into_bytes(self) -> Vec<u8>;
}

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

fn into_bytes(self) -> Vec<u8>

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

Loading content...

Implementations on Foreign Types

impl IntoBytes for u8[src]

impl IntoBytes for i16[src]

impl IntoBytes for i32[src]

impl IntoBytes for Vec<u8>[src]

Loading content...

Implementors

impl IntoBytes for Ieee32[src]

impl IntoBytes for Ieee64[src]

impl IntoBytes for Imm64[src]

Loading content...