pub type rcutils_allocator_t = rcutils_allocator_s;
Aliased Type§
struct rcutils_allocator_t {
pub allocate: Option<unsafe extern "C" fn(usize, *mut c_void) -> *mut c_void>,
pub deallocate: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>,
pub reallocate: Option<unsafe extern "C" fn(*mut c_void, usize, *mut c_void) -> *mut c_void>,
pub zero_allocate: Option<unsafe extern "C" fn(usize, usize, *mut c_void) -> *mut c_void>,
pub state: *mut c_void,
}
Fields§
§allocate: Option<unsafe extern "C" fn(usize, *mut c_void) -> *mut c_void>
§deallocate: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>
§reallocate: Option<unsafe extern "C" fn(*mut c_void, usize, *mut c_void) -> *mut c_void>
§zero_allocate: Option<unsafe extern "C" fn(usize, usize, *mut c_void) -> *mut c_void>
§state: *mut c_void
Trait Implementations
Source§impl Clone for rcutils_allocator_s
impl Clone for rcutils_allocator_s
Source§fn clone(&self) -> rcutils_allocator_s
fn clone(&self) -> rcutils_allocator_s
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 more