#[repr(C)]pub struct aws_allocator {
pub mem_acquire: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, size: usize) -> *mut c_void>,
pub mem_release: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, ptr: *mut c_void)>,
pub mem_realloc: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, oldptr: *mut c_void, oldsize: usize, newsize: usize) -> *mut c_void>,
pub mem_calloc: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, num: usize, size: usize) -> *mut c_void>,
pub impl_: *mut c_void,
}
Fields
mem_acquire: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, size: usize) -> *mut c_void>
mem_release: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, ptr: *mut c_void)>
mem_realloc: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, oldptr: *mut c_void, oldsize: usize, newsize: usize) -> *mut c_void>
mem_calloc: Option<unsafe extern "C" fn(allocator: *mut aws_allocator, num: usize, size: usize) -> *mut c_void>
impl_: *mut c_void
Trait Implementations
sourceimpl Clone for aws_allocator
impl Clone for aws_allocator
sourcefn clone(&self) -> aws_allocator
fn clone(&self) -> aws_allocator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for aws_allocator
impl Debug for aws_allocator
sourceimpl Default for aws_allocator
impl Default for aws_allocator
sourceimpl PartialEq<aws_allocator> for aws_allocator
impl PartialEq<aws_allocator> for aws_allocator
sourcefn eq(&self, other: &aws_allocator) -> bool
fn eq(&self, other: &aws_allocator) -> bool
impl Copy for aws_allocator
impl Eq for aws_allocator
impl StructuralEq for aws_allocator
impl StructuralPartialEq for aws_allocator
Auto Trait Implementations
impl RefUnwindSafe for aws_allocator
impl !Send for aws_allocator
impl !Sync for aws_allocator
impl Unpin for aws_allocator
impl UnwindSafe for aws_allocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more