Trait rapier3d::data::ComponentSet
source · [−]pub trait ComponentSet<T>: ComponentSetOption<T> {
fn size_hint(&self) -> usize;
fn for_each(&self, f: impl FnMut(Index, &T));
fn index(&self, handle: Index) -> &T { ... }
}
Expand description
A set of elements of type T
.
Required Methods
The estimated number of elements in this set.
This value is typically used for preallocating some arrays for better performances.