pub trait ByteableFromRegularStruct: Byteable {
type RegularStruct: Into<Self>;
// Provided method
fn from_struct(s: Self::RegularStruct) -> Self { ... }
}Required Associated Types§
type RegularStruct: Into<Self>
Provided Methods§
fn from_struct(s: Self::RegularStruct) -> Self
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.