Trait AsByte

Source
pub trait AsByte {
    // Required method
    fn as_byte(&self) -> u8;
}
Expand description

AsBytes should be used to convert a value into a single byte.

Required Methods§

Source

fn as_byte(&self) -> u8

It should represent a struct as a single byte.

Implementors§