[−][src]Struct semeion::entity::offspring::Offspring
The Entity offspring.
Implementations
impl<'e, K, C> Offspring<'e, K, C>
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]
Constructs an empty Offspring with the given capacity.
pub fn insert(&mut self, entity: Box<Trait<'e, K, C>>)
[src]
Inserts a new Entity into the Offspring.
pub fn count(&self) -> usize
[src]
Gets the number of entities in the Offspring.
pub fn is_empty(&self) -> bool
[src]
Returns true only if there are no entities in the Offspring.
pub fn drain(&mut self) -> Self
[src]
Takes the entities out of self to create a new Offspring.
Useful when you want to release a new Entity Offspring into the Environment while resetting the state of your Offspring for the next generation.
Trait Implementations
impl<'e, K: Debug, C: Debug> Debug for Offspring<'e, K, C>
[src]
impl<'e, K, C> Default for Offspring<'e, K, C>
[src]
Auto Trait Implementations
impl<'e, K, C> !RefUnwindSafe for Offspring<'e, K, C>
impl<'e, K, C> !Send for Offspring<'e, K, C>
impl<'e, K, C> !Sync for Offspring<'e, K, C>
impl<'e, K, C> Unpin for Offspring<'e, K, C>
impl<'e, K, C> !UnwindSafe for Offspring<'e, K, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,