Trait Serialize

Source
pub trait Serialize: Serial + Deserial { }
Expand description

The Serialize trait provides a means of writing structures into byte-sinks (Write) or reading structures from byte sources (Read).

Can be derived using #[derive(Serialized)] for most cases.

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§

Source§

impl<A> Serialize for A
where A: Deserial + Serial,

Generic instance deriving Serialize for any type that implements both Serial and Deserial.