zingen::wasm

Trait 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§