Trait FromSingleByte

Source
pub trait FromSingleByte {
    // Required method
    fn from_byte(byte: u8) -> Self;
}
Expand description

FromSingleByte should be used to convert a single byte into a value. It is opposite to AsByte.

Required Methods§

Source

fn from_byte(byte: u8) -> Self

It should convert a single byte into an implementor struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§