[][src]Trait plexus::index::IndexBuffer

pub trait IndexBuffer<R> where
    R: Grouping
{ type Index: Copy + Integer + NumCast + Unsigned; fn arity(&self) -> Arity; }

Index buffer.

This trait is implemented by types that can be used as an index buffer. The elements in the buffer are determined by a Grouping.

In particular, this trait is implemented by Vec, such as Vec<usize> or Vec<Trigon<usize>>.

Associated Types

type Index: Copy + Integer + NumCast + Unsigned

The type of individual indices in the buffer.

Loading content...

Required methods

fn arity(&self) -> Arity

Loading content...

Implementations on Foreign Types

impl<A, N> IndexBuffer<Flat<A, N>> for Vec<N> where
    A: NonZero + Unsigned,
    N: Copy + Integer + NumCast + Unsigned
[src]

type Index = N

impl<P> IndexBuffer<P> for Vec<P> where
    P: ConstantArity + Topological,
    P::Vertex: Copy + Integer + NumCast + Unsigned
[src]

type Index = P::Vertex

impl<N> IndexBuffer<Polygon<N>> for Vec<Polygon<N>> where
    N: Copy + Integer + NumCast + Unsigned
[src]

type Index = <Polygon<N> as Topological>::Vertex

Loading content...

Implementors

Loading content...