#[repr(C)]pub struct affineui_allocator {
pub alloc: Option<unsafe extern "C" fn(size: usize, align: usize, user: *mut c_void) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(p: *mut c_void, old_sz: usize, new_sz: usize, align: usize, user: *mut c_void) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(p: *mut c_void, user: *mut c_void)>,
pub user: *mut c_void,
}Fields§
§alloc: Option<unsafe extern "C" fn(size: usize, align: usize, user: *mut c_void) -> *mut c_void>§realloc: Option<unsafe extern "C" fn(p: *mut c_void, old_sz: usize, new_sz: usize, align: usize, user: *mut c_void) -> *mut c_void>§free: Option<unsafe extern "C" fn(p: *mut c_void, user: *mut c_void)>§user: *mut c_voidTrait Implementations§
Source§impl Clone for affineui_allocator
impl Clone for affineui_allocator
Source§fn clone(&self) -> affineui_allocator
fn clone(&self) -> affineui_allocator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for affineui_allocator
Auto Trait Implementations§
impl !Send for affineui_allocator
impl !Sync for affineui_allocator
impl Freeze for affineui_allocator
impl RefUnwindSafe for affineui_allocator
impl Unpin for affineui_allocator
impl UnsafeUnpin for affineui_allocator
impl UnwindSafe for affineui_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