pub struct Res<T>(/* private fields */);Expand description
A read-only resource container that mirrors Bevy’s Res. It holds an owned read lock on a shared dependency and provides strong typing via Deref.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Res<T>
impl<T> !RefUnwindSafe for Res<T>
impl<T> Send for Res<T>where
T: Send,
impl<T> Sync for Res<T>where
T: Sync,
impl<T> Unpin for Res<T>where
T: Unpin,
impl<T> UnsafeUnpin for Res<T>
impl<T> !UnwindSafe for Res<T>
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