pub struct Ref<T>where
T: Object,{ /* private fields */ }
Expand description
An acquired thread-local instance of a linked object of type T
,
implementing Deref<Target = T>
.
For details, see InstancePerThread<T>
which is the type used
to create instances of Ref<T>
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Ref<T>
impl<T> !RefUnwindSafe for Ref<T>
impl<T> !Send for Ref<T>
impl<T> !Sync for Ref<T>
impl<T> Unpin for Ref<T>
impl<T> !UnwindSafe for Ref<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