pub trait Set {
type Elem;
type Atom;
// Required method
fn len(&self) -> usize;
// Provided method
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.
Required Associated Types§
Required Methods§
Provided Methods§
Implementations on Foreign Types§
Source§impl<I: IntBound> Set for RangeInclusive<I>
impl<I: IntBound> Set for RangeInclusive<I>
type Elem = <RangeInclusive<I> as BoundedRange>::Index
type Atom = <RangeInclusive<I> as BoundedRange>::Index
fn len(&self) -> usize
Source§impl<I: IntBound> Set for RangeToInclusive<I>
impl<I: IntBound> Set for RangeToInclusive<I>
type Elem = <RangeToInclusive<I> as BoundedRange>::Index
type Atom = <RangeToInclusive<I> as BoundedRange>::Index
fn len(&self) -> usize
Implementors§
Source§impl<S: Set + UniChunkable<N>, N: Unsigned> Set for UniChunked<S, U<N>>
An implementation of Set for a UniChunked collection of any type that
can be grouped as N sub-elements.
impl<S: Set + UniChunkable<N>, N: Unsigned> Set for UniChunked<S, U<N>>
An implementation of Set for a UniChunked collection of any type that
can be grouped as N sub-elements.
Source§impl<S: Set> Set for ChunkedN<S>
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.
impl<S: Set> Set for ChunkedN<S>
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.
Source§impl<S: Set, I: AsRef<[usize]>> Set for Subset<S, I>
Required for Chunked and UniChunked subsets.
impl<S: Set, I: AsRef<[usize]>> Set for Subset<S, I>
Required for Chunked and UniChunked subsets.