Trait glitter::index_data::IndexData [] [src]

pub trait IndexData {
    fn index_datum_type() -> IndexDatumType;
fn index_bytes(&self) -> &[u8];
fn index_elements(&self) -> usize; }

Indicates that a type can be coerced to a u8 slice that can be treated as a stream of index data.

Required Methods

Return the data type that this index data should be treated as.

Create a byte slice of index data from self.

Return the number of index elements that self contains.

Implementations on Foreign Types

impl<T: IndexDatum> IndexData for [T]
[src]

Implementors