#[repr(C)]pub struct cJSON_Hooks {
pub malloc_fn: Option<unsafe extern "C" fn(sz: usize) -> *mut c_void>,
pub free_fn: Option<unsafe extern "C" fn(ptr: *mut c_void)>,
}Fields§
§malloc_fn: Option<unsafe extern "C" fn(sz: usize) -> *mut c_void>§free_fn: Option<unsafe extern "C" fn(ptr: *mut c_void)>Trait Implementations§
Source§impl Clone for cJSON_Hooks
impl Clone for cJSON_Hooks
Source§fn clone(&self) -> cJSON_Hooks
fn clone(&self) -> cJSON_Hooks
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 cJSON_Hooks
impl Debug for cJSON_Hooks
Source§impl Default for cJSON_Hooks
impl Default for cJSON_Hooks
impl Copy for cJSON_Hooks
Auto Trait Implementations§
impl Freeze for cJSON_Hooks
impl RefUnwindSafe for cJSON_Hooks
impl Send for cJSON_Hooks
impl Sync for cJSON_Hooks
impl Unpin for cJSON_Hooks
impl UnwindSafe for cJSON_Hooks
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