Trait meshx::attrib::AttribIndex

source ·
pub trait AttribIndex<M>
where Self: Sized + Clone,
{ // Required methods fn attrib_size(mesh: &M) -> usize; fn attrib_dict(mesh: &M) -> &AttribDict<Self>; fn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>; fn attrib_dict_and_cache_mut( mesh: &mut M ) -> (&mut AttribDict<Self>, Option<&mut AttribValueCache>); }
Expand description

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

Required Methods§

source

fn attrib_size(mesh: &M) -> usize

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

source

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

Read only access to the attribute dictionary.

source

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

Read and write access to the attribute dictionary.

source

fn attrib_dict_and_cache_mut( mesh: &mut M ) -> (&mut AttribDict<Self>, Option<&mut AttribValueCache>)

Read and write access to the attribute dictionary as well as an optional cache for indirect attribute values.

Object Safety§

This trait is not object safe.

Implementors§