Struct panda_sys::ProtobufCAllocator
source · #[repr(C)]pub struct ProtobufCAllocator {
pub alloc: Option<unsafe extern "C" fn(allocator_data: *mut c_void, size: size_t) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(allocator_data: *mut c_void, pointer: *mut c_void)>,
pub allocator_data: *mut c_void,
}
Fields§
§alloc: Option<unsafe extern "C" fn(allocator_data: *mut c_void, size: size_t) -> *mut c_void>
§free: Option<unsafe extern "C" fn(allocator_data: *mut c_void, pointer: *mut c_void)>
§allocator_data: *mut c_void
Trait Implementations§
source§impl Clone for ProtobufCAllocator
impl Clone for ProtobufCAllocator
source§fn clone(&self) -> ProtobufCAllocator
fn clone(&self) -> ProtobufCAllocator
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 moresource§impl Debug for ProtobufCAllocator
impl Debug for ProtobufCAllocator
impl Copy for ProtobufCAllocator
Auto Trait Implementations§
impl RefUnwindSafe for ProtobufCAllocator
impl !Send for ProtobufCAllocator
impl !Sync for ProtobufCAllocator
impl Unpin for ProtobufCAllocator
impl UnwindSafe for ProtobufCAllocator
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