pub struct Acquirable<T: 'static> { /* private fields */ }Expand description
A smart pointer to a component that keeps the entity data alive.
Implements Deref for transparent access to the component.
Implementations§
Source§impl<T: 'static> Acquirable<T>
impl<T: 'static> Acquirable<T>
Sourcepub fn extract<U: 'static>(&self) -> Option<Acquirable<U>>
pub fn extract<U: 'static>(&self) -> Option<Acquirable<U>>
Extract a different component type from the same entity.
Trait Implementations§
Source§impl<T: 'static> AsRef<T> for Acquirable<T>
impl<T: 'static> AsRef<T> for Acquirable<T>
Source§impl<T: 'static> Clone for Acquirable<T>
impl<T: 'static> Clone for Acquirable<T>
Source§impl<T: 'static> Deref for Acquirable<T>
impl<T: 'static> Deref for Acquirable<T>
impl<T> Send for Acquirable<T>where
T: Send + 'static,
impl<T> Sync for Acquirable<T>where
T: Sync + 'static,
Auto Trait Implementations§
impl<T> Freeze for Acquirable<T>
impl<T> RefUnwindSafe for Acquirable<T>where
T: RefUnwindSafe,
impl<T> Unpin for Acquirable<T>
impl<T> UnwindSafe for Acquirable<T>where
T: RefUnwindSafe,
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