[−][src]Struct goggles::world::Entities
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
impl<'a> FetchResources<'a> for Entities<'a>
[src]
type Source = World
type Resources = RwResources<WorldResourceId>
fn check_resources() -> Result<RwResources<WorldResourceId>, ResourceConflict>
[src]
fn fetch(world: &'a World) -> Self
[src]
impl<'a> IntoJoin for &'a Entities<'a>
[src]
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,