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

pub trait AttribIndex<M>: Clone {
    fn attrib_size(mesh: &M) -> usize;
fn attrib_dict(
        mesh: &M
    ) -> &HashMap<String, Attribute<Self>, RandomState, Global>;
fn attrib_dict_mut(
        mesh: &mut M
    ) -> &mut HashMap<String, Attribute<Self>, RandomState, Global>;
fn attrib_dict_and_cache_mut(
        mesh: &mut M
    ) -> (&mut HashMap<String, Attribute<Self>, RandomState, Global>, Option<&mut HashSet<Value<MaybeUninit<usize>, AttributeValueHashVTable>, RandomState, Global>>); }
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

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

Read only access to the attribute dictionary.

Read and write access to the attribute dictionary.

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

Implementors