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