pub trait Serialize {
    fn serialize(&self, cursor: &mut Cursor<&mut Vec<u8>>, version: Version);

    fn serialize_to_vec(&self, version: Version) -> Vec<u8> { ... }
}
Expand description

Trait that should be implemented by all types that wish to be serialized to a buffer.

Required Methods

Serializes given value using the cursor.

Provided Methods

Wrapper for easily starting hierarchical serialization.

Implementations on Foreign Types

Implementors