Serializable

Trait Serializable 

Source
pub trait Serializable:
    BinWrite
    + ReadEndian
    + WriteEndian {
    // Provided method
    fn to_bytes(&self) -> Result<Vec<u8>, Error>
       where for<'a> Self::Args<'a>: Default { ... }
}

Provided Methods§

Source

fn to_bytes(&self) -> Result<Vec<u8>, Error>
where for<'a> Self::Args<'a>: Default,

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§