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

Corresponding mutable type used for writing data.

Associated Constants

Schema of the type. Used only for debug and inspection purposes.

Size of an object of this type in bytes.

Required Methods

Raw pointer to the data.

Implementors