Struct obs_sys::base_allocator
source · #[repr(C)]pub struct base_allocator {
pub malloc: Option<unsafe extern "C" fn(arg1: size_t) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: size_t) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
}
Fields
malloc: Option<unsafe extern "C" fn(arg1: size_t) -> *mut c_void>
realloc: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: size_t) -> *mut c_void>
free: Option<unsafe extern "C" fn(arg1: *mut c_void)>
Trait Implementations
sourceimpl Clone for base_allocator
impl Clone for base_allocator
sourcefn clone(&self) -> base_allocator
fn clone(&self) -> base_allocator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for base_allocator
impl Debug for base_allocator
sourceimpl Default for base_allocator
impl Default for base_allocator
sourcefn default() -> base_allocator
fn default() -> base_allocator
Returns the “default value” for a type. Read more
impl Copy for base_allocator
Auto Trait Implementations
impl RefUnwindSafe for base_allocator
impl Send for base_allocator
impl Sync for base_allocator
impl Unpin for base_allocator
impl UnwindSafe for base_allocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more