pub struct OwnedWrapper<T>(/* private fields */);
Expand description
An owned wrapper for T
that implements Deref
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for OwnedWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for OwnedWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for OwnedWrapper<T>where
T: Send,
impl<T> Sync for OwnedWrapper<T>where
T: Sync,
impl<T> Unpin for OwnedWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for OwnedWrapper<T>where
T: 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
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.