[][src]Struct semeion::entity::offspring::Offspring

pub struct Offspring<'e, K, C> { /* fields omitted */ }

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]

pub fn default() -> Self[src]

Constructs an empty Offspring.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.