#[repr(C)]pub struct dds_cdrstream_allocator {
pub malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, new_size: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(pt: *mut c_void)>,
}Fields§
§malloc: Option<unsafe extern "C" fn(size: usize) -> *mut c_void>§realloc: Option<unsafe extern "C" fn(ptr: *mut c_void, new_size: usize) -> *mut c_void>§free: Option<unsafe extern "C" fn(pt: *mut c_void)>Trait Implementations§
Source§impl Clone for dds_cdrstream_allocator
impl Clone for dds_cdrstream_allocator
Source§fn clone(&self) -> dds_cdrstream_allocator
fn clone(&self) -> dds_cdrstream_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_cdrstream_allocator
impl Debug for dds_cdrstream_allocator
Source§impl Default for dds_cdrstream_allocator
impl Default for dds_cdrstream_allocator
Source§fn default() -> dds_cdrstream_allocator
fn default() -> dds_cdrstream_allocator
Returns the “default value” for a type. Read more
impl Copy for dds_cdrstream_allocator
Auto Trait Implementations§
impl Freeze for dds_cdrstream_allocator
impl RefUnwindSafe for dds_cdrstream_allocator
impl Send for dds_cdrstream_allocator
impl Sync for dds_cdrstream_allocator
impl Unpin for dds_cdrstream_allocator
impl UnsafeUnpin for dds_cdrstream_allocator
impl UnwindSafe for dds_cdrstream_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