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
fn 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
.
fn attrib_dict(
mesh: &M
) -> &HashMap<String, Attribute<Self>, RandomState, Global>
fn attrib_dict(
mesh: &M
) -> &HashMap<String, Attribute<Self>, RandomState, Global>
Read only access to the attribute dictionary.
fn attrib_dict_mut(
mesh: &mut M
) -> &mut HashMap<String, Attribute<Self>, RandomState, Global>
fn attrib_dict_mut(
mesh: &mut M
) -> &mut HashMap<String, Attribute<Self>, RandomState, Global>
Read and write access to the attribute dictionary.
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>>)
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>>)
Read and write access to the attribute dictionary as well as an optional cache for indirect attribute values.