#[repr(C)]pub struct ProtobufCAllocator {
pub alloc: Option<unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>,
pub allocator_data: *mut c_void,
}Fields§
§alloc: Option<unsafe extern "C" fn(*mut c_void, u64) -> *mut c_void>§free: Option<unsafe extern "C" fn(*mut c_void, *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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtobufCAllocator
Auto Trait Implementations§
impl !Send for ProtobufCAllocator
impl !Sync for ProtobufCAllocator
impl Freeze for ProtobufCAllocator
impl RefUnwindSafe for ProtobufCAllocator
impl Unpin for ProtobufCAllocator
impl UnsafeUnpin 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