#[repr(C)]pub struct Allocator<'a> {
pub zalloc: alloc_func,
pub zfree: free_func,
pub opaque: voidpf,
pub _marker: PhantomData<&'a ()>,
}
Fields§
§zalloc: alloc_func
§zfree: free_func
§opaque: voidpf
§_marker: PhantomData<&'a ()>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Allocator<'a>
impl<'a> RefUnwindSafe for Allocator<'a>
impl<'a> !Send for Allocator<'a>
impl<'a> !Sync for Allocator<'a>
impl<'a> Unpin for Allocator<'a>
impl<'a> UnwindSafe for Allocator<'a>
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