[][src]Trait genmesh::Indexer

pub trait Indexer<T> {
    fn index(&mut self, v: T) -> usize;
}

A trait defining how to defined an Indexer. An indexer is a object that collects verticies and emits indexes for the vertex. The intent is that an Indexer can find redundent vertexes and deduplicate them by returning aliased indexes.

Required methods

fn index(&mut self, v: T) -> usize

convert a vertex into an index.

Loading content...

Implementors

impl<T: PartialEq + Clone, F: FnMut(usize, T)> Indexer<T> for LruIndexer<T, F>[src]

Loading content...