[][src]Trait nannou::mesh::GetVertex

pub trait GetVertex<I> {
    type Vertex;
    fn get_vertex(&self, index: I) -> Option<Self::Vertex>;
}

Mesh types that can be indexed to produce a vertex.

Associated Types

type Vertex

The vertex type representing all channels of data within the mesh at a single index.

Loading content...

Required methods

fn get_vertex(&self, index: I) -> Option<Self::Vertex>

Create a vertex containing all channel properties for the given index.

Loading content...

Implementations on Foreign Types

impl<'a, M, I> GetVertex<I> for &'a M where
    M: GetVertex<I>, 
[src]

type Vertex = M::Vertex

impl<'a, M, I> GetVertex<I> for &'a mut M where
    M: GetVertex<I>, 
[src]

type Vertex = M::Vertex

impl<'a, M, I> GetVertex<I> for Ref<'a, M> where
    M: GetVertex<I>, 
[src]

type Vertex = M::Vertex

impl<'a, M, I> GetVertex<I> for RefMut<'a, M> where
    M: GetVertex<I>, 
[src]

type Vertex = M::Vertex

Loading content...

Implementors

impl<M, C, I> GetVertex<I> for WithColors<M, C> where
    M: GetVertex<I>,
    C: Channel,
    C::Element: Clone,
    I: Copy + TryInto<usize>, 
[src]

type Vertex = WithColor<M::Vertex, C::Element>

impl<M, I, Ix> GetVertex<Ix> for WithIndices<M, I> where
    M: GetVertex<Ix>, 
[src]

type Vertex = M::Vertex

impl<M, N, I> GetVertex<I> for WithNormals<M, N> where
    M: GetVertex<I>,
    N: Channel,
    N::Element: Clone,
    I: Copy + TryInto<usize>, 
[src]

type Vertex = WithNormal<M::Vertex, N::Element>

impl<M, T, I> GetVertex<I> for WithTexCoords<M, T> where
    M: GetVertex<I>,
    T: Channel,
    T::Element: Clone,
    I: Copy + TryInto<usize>, 
[src]

type Vertex = WithTexCoords<M::Vertex, T::Element>

impl<P, I> GetVertex<I> for MeshPoints<P> where
    P: Channel,
    P::Element: Clone,
    I: TryInto<usize>, 
[src]

type Vertex = P::Element

impl<S> GetVertex<u32> for Mesh<S> where
    S: Clone
[src]

type Vertex = Vertex<S>

Loading content...