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

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

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

Implementations on Foreign Types

Implementors