#[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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)