[][src]Trait susywasmi::memory_units::ByteSize

pub trait ByteSize {
    fn byte_size() -> Bytes;
}

A trait defining the size, in bytes, of one unit of Self.

Example

println!("The size of one word in bytes is {}.", Words::byte_size().0);

Required methods

fn byte_size() -> Bytes

The size, in bytes, of a single unit of Self.

Loading content...

Implementations on Foreign Types

impl ByteSize for Pages[src]

impl ByteSize for Words[src]

Loading content...

Implementors

impl ByteSize for Bytes[src]

impl ByteSize for susywasmi::memory_units::Pages[src]

impl ByteSize for susywasmi::memory_units::Words[src]

Loading content...