pub trait TryFromValue<V> {
type EnumType;
// Required method
fn try_from_value(v: V) -> Option<Self::EnumType>;
}
Expand description
Conversion of raw register value into enumerated values member. Implemented inside register_bitfields! macro for each bit field.
Required Associated Types§
Required Methods§
fn try_from_value(v: V) -> Option<Self::EnumType>
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.