r2r_rcl

Type Alias rcutils_allocator_t

Source
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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for rcutils_allocator_s

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for rcutils_allocator_s

Source§

fn eq(&self, other: &rcutils_allocator_s) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for rcutils_allocator_s

Source§

impl StructuralPartialEq for rcutils_allocator_s