pub struct ResourceHandle(pub Arc<dyn Resource>);Expand description
A wrapper around Arc<dyn Resource> that provides Clone and Debug.
Tuple Fields§
§0: Arc<dyn Resource>Implementations§
Trait Implementations§
Source§impl Clone for ResourceHandle
impl Clone for ResourceHandle
Source§fn clone(&self) -> ResourceHandle
fn clone(&self) -> ResourceHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResourceHandle
impl !UnwindSafe for ResourceHandle
impl Freeze for ResourceHandle
impl Send for ResourceHandle
impl Sync for ResourceHandle
impl Unpin for ResourceHandle
impl UnsafeUnpin for ResourceHandle
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