ByteableRegular

Trait ByteableRegular 

Source
pub trait ByteableRegular: Sized {
    type Raw: Byteable;

    // Required methods
    fn to_raw(self) -> Self::Raw;
    fn from_raw(raw: Self::Raw) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn to_raw(self) -> Self::Raw

Source

fn from_raw(raw: Self::Raw) -> 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§