pub struct Tallock(pub Mutex<Talloc>);Expand description
Wrapper struct containing a mutex-locked Talloc.
In order to access the Allocator API, call allocator_api_ref.
Tuple Fields§
§0: Mutex<Talloc>Implementations§
Source§impl Tallock
impl Tallock
Sourcepub fn allocator_api_ref(&self) -> TallockRef<'_>
pub fn allocator_api_ref(&self) -> TallockRef<'_>
Get a reference that implements the Allocator API.
Trait Implementations§
Source§impl GlobalAlloc for Tallock
impl GlobalAlloc for Tallock
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 !Freeze for Tallock
impl !RefUnwindSafe for Tallock
impl Send for Tallock
impl Sync for Tallock
impl Unpin for Tallock
impl UnwindSafe for Tallock
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