Trait rapier2d::data::ComponentSet [−][src]
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.