Trait meshx::attrib::AttribIndex
source · pub trait AttribIndex<M>{
// 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§
sourcefn attrib_size(mesh: &M) -> usize
fn attrib_size(mesh: &M) -> usize
Get the size of the attribute at the appropriate mesh location determined by I
.
sourcefn attrib_dict(mesh: &M) -> &AttribDict<Self>
fn attrib_dict(mesh: &M) -> &AttribDict<Self>
Read only access to the attribute dictionary.
sourcefn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>
fn attrib_dict_mut(mesh: &mut M) -> &mut AttribDict<Self>
Read and write access to the attribute dictionary.
sourcefn attrib_dict_and_cache_mut(
mesh: &mut M
) -> (&mut AttribDict<Self>, Option<&mut AttribValueCache>)
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.