ByteableFromRegularStruct

Trait ByteableFromRegularStruct 

Source
pub trait ByteableFromRegularStruct: Byteable {
    type RegularStruct: Into<Self>;

    // Provided method
    fn from_struct(s: Self::RegularStruct) -> Self { ... }
}

Required Associated Types§

Provided Methods§

Source

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.

Implementors§