pub trait FromU8 {
// Required method
fn from_u8(value: u8) -> Option<Self>
where Self: Sized;
}Expand description
Provides conversion from a u8 value to an enum type.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl FromU8 for AggressorSide
impl FromU8 for AssetClass
impl FromU8 for BookAction
impl FromU8 for BookType
impl FromU8 for InstrumentCloseType
Convert the given value to an InstrumentCloseType.
impl FromU8 for OrderSide
Convert the given value to an OrderSide.