#[repr(C)]pub struct dds_allocator {
pub malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(ptr: *mut c_void)>,
}Expand description
@brief DDS Allocator @ingroup alloc C-Style allocator API
Fields§
§malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>< behave like C malloc
realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, size: usize) -> *mut c_void>< behave like C realloc, may be null
free: Option<unsafe extern "C" fn(ptr: *mut c_void)>< behave like C free
Trait Implementations§
Source§impl Clone for dds_allocator
impl Clone for dds_allocator
Source§fn clone(&self) -> dds_allocator
fn clone(&self) -> dds_allocator
Returns a duplicate 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 dds_allocator
impl Debug for dds_allocator
Source§impl Default for dds_allocator
impl Default for dds_allocator
Source§fn default() -> dds_allocator
fn default() -> dds_allocator
Returns the “default value” for a type. Read more
impl Copy for dds_allocator
Auto Trait Implementations§
impl Freeze for dds_allocator
impl RefUnwindSafe for dds_allocator
impl Send for dds_allocator
impl Sync for dds_allocator
impl Unpin for dds_allocator
impl UnsafeUnpin for dds_allocator
impl UnwindSafe for dds_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