#[repr(C)]pub struct lzma_allocator {
pub alloc: Option<unsafe extern "C" fn(opaque: *mut c_void, nmemb: usize, size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(opaque: *mut c_void, ptr: *mut c_void)>,
pub opaque: *mut c_void,
}Fields§
§alloc: Option<unsafe extern "C" fn(opaque: *mut c_void, nmemb: usize, size: usize) -> *mut c_void>§free: Option<unsafe extern "C" fn(opaque: *mut c_void, ptr: *mut c_void)>§opaque: *mut c_voidTrait Implementations§
Source§impl Clone for lzma_allocator
impl Clone for lzma_allocator
Source§fn clone(&self) -> lzma_allocator
fn clone(&self) -> lzma_allocator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for lzma_allocator
impl Debug for lzma_allocator
impl Copy for lzma_allocator
Auto Trait Implementations§
impl Freeze for lzma_allocator
impl RefUnwindSafe for lzma_allocator
impl !Send for lzma_allocator
impl !Sync for lzma_allocator
impl Unpin for lzma_allocator
impl UnwindSafe for lzma_allocator
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