Trait zingen::wasm::abi::ToLSBytes

source ·
pub trait ToLSBytes {
    type Output: AsRef<[u8]>;

    // Required method
    fn to_ls_bytes(&self) -> Self::Output;
}
Expand description

Get the offset of this type in the lowest significant bytes.

Required Associated Types§

source

type Output: AsRef<[u8]>

Output buffer

Required Methods§

source

fn to_ls_bytes(&self) -> Self::Output

Convert self to the lowest significant bytes.

Implementations on Foreign Types§

source§

impl ToLSBytes for &ValType

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for &[ValType]

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for i32

source§

type Output = SmallVec<[u8; 4]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for i64

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for u8

source§

type Output = SmallVec<[u8; 1]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for u16

source§

type Output = SmallVec<[u8; 2]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for u32

source§

type Output = SmallVec<[u8; 4]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for u64

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for usize

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

source§

impl ToLSBytes for BlockType

source§

type Output = SmallVec<[u8; 8]>

source§

fn to_ls_bytes(&self) -> Self::Output

Implementors§