[−][src]Trait flatdata::Struct
A factory trait used to bind lifetime to Ref implementations.
Vector/ArrayView-like classes cannot be directly implemented over the structs since that binds lifetime too early. Instead this generic factory and Higher-Rank-Trait-Bounds are used to emulate higher-kinded-generics.
Associated Types
Loading content...Associated Constants
const SCHEMA: &'static str
Schema of the type. Used only for debug and inspection purposes.
const SIZE_IN_BYTES: usize
Size of an object of this type in bytes.
Required methods
fn create(data: &'a [u8]) -> Self::Item
Creates a new item from a slice.
fn create_mut(data: &'a mut [u8]) -> Self::ItemMut
Creates a new item from a slice.