[][src]Struct goggles::local_world::Entities

pub struct Entities<'a>(_);

Implementations

impl<'a> Entities<'a>[src]

pub fn delete(&self, e: Entity) -> Result<(), WrongGeneration>[src]

Atomically request that this entity be removed on the next call to World::merge_atomic.

An entity is not deleted until World::merge_atomic is called, so it will still be 'alive' and show up in queries until that time.

pub fn is_alive(&self, e: Entity) -> bool[src]

pub fn entity(&self, index: Index) -> Option<Entity>[src]

pub fn create(&self) -> Entity[src]

Atomically allocate an entity. An atomically allocated entity is indistinguishable from a regular live entity, but when World::merge_atomic is called it will be merged into a non-atomic BitSet for performance.

pub fn live_bitset(&self) -> LiveBitSet<'_>[src]

Trait Implementations

Auto Trait Implementations

impl<'a> RefUnwindSafe for Entities<'a>

impl<'a> Send for Entities<'a>

impl<'a> Sync for Entities<'a>

impl<'a> Unpin for Entities<'a>

impl<'a> UnwindSafe for Entities<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[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> Pointable for T

type Init = T

The type for initializers.

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.