[][src]Trait gut::mesh::attrib::AttribIndex

pub trait AttribIndex<M> where
    Self: Sized + Clone
{ fn attrib_size(mesh: &M) -> usize;
fn attrib_dict(mesh: &M) -> &AttribDict<Self>;
fn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>; }

This trait provides an interface for the implementer of Attrib to access attributes associated with a specific topology within a mesh.

Required methods

fn attrib_size(mesh: &M) -> usize

Get the size of the attribute at the appropriate mesh location determined by I.

fn attrib_dict(mesh: &M) -> &AttribDict<Self>

Read only access to the attribute dictionary.

fn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>

Read and write access to the attribute dictionary.

Loading content...

Implementors

impl<M: CellAttrib> AttribIndex<M> for CellIndex[src]

impl<M: CellEdgeAttrib> AttribIndex<M> for CellEdgeIndex[src]

impl<M: CellFaceAttrib> AttribIndex<M> for CellFaceIndex[src]

impl<M: CellVertexAttrib> AttribIndex<M> for CellVertexIndex[src]

impl<M: EdgeAttrib> AttribIndex<M> for EdgeIndex[src]

impl<M: EdgeCellAttrib> AttribIndex<M> for EdgeCellIndex[src]

impl<M: EdgeFaceAttrib> AttribIndex<M> for EdgeFaceIndex[src]

impl<M: EdgeVertexAttrib> AttribIndex<M> for EdgeVertexIndex[src]

impl<M: FaceAttrib> AttribIndex<M> for FaceIndex[src]

impl<M: FaceCellAttrib> AttribIndex<M> for FaceCellIndex[src]

impl<M: FaceEdgeAttrib> AttribIndex<M> for FaceEdgeIndex[src]

impl<M: FaceVertexAttrib> AttribIndex<M> for FaceVertexIndex[src]

impl<M: MeshAttrib> AttribIndex<M> for MeshIndex[src]

impl<M: VertexAttrib> AttribIndex<M> for VertexIndex[src]

impl<M: VertexCellAttrib> AttribIndex<M> for VertexCellIndex[src]

impl<M: VertexEdgeAttrib> AttribIndex<M> for VertexEdgeIndex[src]

impl<M: VertexFaceAttrib> AttribIndex<M> for VertexFaceIndex[src]

Loading content...