pub struct Locked<A> { /* private fields */ }Expand description
互斥锁包装器
Implementations§
Trait Implementations§
Source§impl GlobalAlloc for Locked<BumpAllocator>
impl GlobalAlloc for Locked<BumpAllocator>
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreSource§impl GlobalAlloc for Locked<LinkedListAllocator>
impl GlobalAlloc for Locked<LinkedListAllocator>
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl<A> !Freeze for Locked<A>
impl<A> !RefUnwindSafe for Locked<A>
impl<A> Forget for Locked<A>
impl<A> Send for Locked<A>
impl<A> Sync for Locked<A>
impl<A> Unpin for Locked<A>
impl<A> UnsafeUnpin for Locked<A>where
Mutex<A>: UnsafeUnpin,
impl<A> UnwindSafe for Locked<A>where
Mutex<A>: 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