[−][src]Trait haiku::support::Flattenable
An interface for types that are flattenable
Required methods
fn type_code() -> u32
The type code is a unique identifier that identifies the flattened data
fn is_fixed_size() -> bool
Check if flattened objects of this type are always a fixed size
fn flattened_size(&self) -> usize
Return the size of the flattened type
fn flatten(&self) -> Vec<u8>
Return a flattened version of this object
fn unflatten(_: &[u8]) -> Result<T>
Unflatten an object from a stream