Trait luminance::vertex::CompatibleVertex [] [src]

pub trait CompatibleVertex<V>: Vertex where
    V: Vertex
{ }

A hint trait to implement to state whether a vertex type is compatible with another.

If you have two types V0: Vertex and V1: Vertex, we say that V1 is compatible with V0 only if &V0::vertex_format()[0..V1::vertex_format().len()] == &V1::vertex_format()[..]. That is, if V1 is a sub-slice of V0 starting at 0.

We node that as V1: CompatibleVertex<V0>.

Implementors