pub trait SpawnableList<R> {
// Required methods
fn spawn(self, world: &mut World, entity: Entity);
fn size_hint(&self) -> usize;
}
Expand description
Required Methods§
Sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Returns a size hint, which is used to reserve space for this list in a RelationshipTarget
. This should be
less than or equal to the actual size of the list. When in doubt, just use 0.