pub struct WeakEntityHandle<S> { /* private fields */ }Expand description
A non-owning reference to an entity. Does not keep the entity alive.
When the last EntityHandle for the entity drops, the entity is removed
from the graph and subsequent mutate calls on any WeakEntityHandle
pointing to it become no-ops.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for WeakEntityHandle<S>
impl<S> RefUnwindSafe for WeakEntityHandle<S>where
S: RefUnwindSafe,
impl<S> Send for WeakEntityHandle<S>where
S: Send,
impl<S> Sync for WeakEntityHandle<S>where
S: Sync,
impl<S> Unpin for WeakEntityHandle<S>where
S: Unpin,
impl<S> UnsafeUnpin for WeakEntityHandle<S>
impl<S> UnwindSafe for WeakEntityHandle<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more