#[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_voidTrait Implementations§
Source§impl Clone for ProtobufCAllocator
impl Clone for ProtobufCAllocator
Source§fn clone(&self) -> ProtobufCAllocator
fn clone(&self) -> ProtobufCAllocator
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 ProtobufCAllocator
impl Debug for ProtobufCAllocator
impl Copy for ProtobufCAllocator
Auto Trait Implementations§
impl Freeze for ProtobufCAllocator
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