Trait alkahest::Pack[][src]

pub trait Pack<T: Schema> {
    fn pack(self, offset: usize, output: &mut [u8]) -> (Packed<T>, usize);
}
Expand description

Trait for packable types that match specified Schema.

Required methods

Packs into trivially serializable value.

Returns packed data and number of bytes used from output storage.

Implementors