pub struct AllocationLocker<'a, T> { /* private fields */ }
Expand description
A lock that must be kept alive as long as no allocation is allowed.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for AllocationLocker<'a, T>
impl<'a, T> RefUnwindSafe for AllocationLocker<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for AllocationLocker<'a, T>where
T: Sync,
impl<'a, T> Sync for AllocationLocker<'a, T>where
T: Sync,
impl<'a, T> Unpin for AllocationLocker<'a, T>
impl<'a, T> UnwindSafe for AllocationLocker<'a, 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