Trait cranelift_codegen::ir::immediates::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§