Trait flatk::Set[][src]

pub trait Set {
    type Elem;
    type Atom;
    fn len(&self) -> usize;

    fn is_empty(&self) -> bool { ... }
}
Expand description

A trait defining a raw buffer of data. This data is typed but not annotated so it can represent anything. For example a buffer of floats can represent a set of vertex colours or vertex positions.

Associated Types

Owned element of the set.

The most basic element contained by this collection. If this collection contains other collections, this type should be different than Elem.

Required methods

Provided methods

Implementations on Foreign Types

Implementors

An implementation of Set for a UniChunked collection of any type that can be grouped as N sub-elements.

An implementation of Set for a UniChunked collection of any type that can be grouped into sub-elements whose size is determined at run-time.

Required for Chunked and UniChunked subsets.