Trait flatdata::Struct [−][src]
pub trait Struct: Clone + Debug + PartialEq + From<*const u8> { type Mut: StructMut + AsRef<Self>; const SCHEMA: &'static str; const SIZE_IN_BYTES: usize; fn as_ptr(&self) -> *const u8; }
A type in flatdata used for reading data.
Each struct in generated code implements this trait.
Associated Types
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.