#[repr(C)]pub struct UriMemoryManagerStruct {
pub malloc: UriFuncMalloc,
pub calloc: UriFuncCalloc,
pub realloc: UriFuncRealloc,
pub reallocarray: UriFuncReallocarray,
pub free: UriFuncFree,
pub userData: *mut c_void,
}Expand description
Class-like interface of custom memory managers
@see uriCompleteMemoryManager @see uriEmulateCalloc @see uriEmulateReallocarray @see uriTestMemoryManager @since 0.9.0
Fields§
§malloc: UriFuncMalloc< Pointer to custom malloc(3)
calloc: UriFuncCalloc< Pointer to custom calloc(3); to emulate using malloc and memset see uriEmulateCalloc
realloc: UriFuncRealloc< Pointer to custom realloc(3)
reallocarray: UriFuncReallocarray< Pointer to custom reallocarray(3); to emulate using realloc see uriEmulateReallocarray
free: UriFuncFree< Pointer to custom free(3)
userData: *mut c_void< Pointer to data that the other function members need access to
Trait Implementations§
Source§impl Clone for UriMemoryManagerStruct
impl Clone for UriMemoryManagerStruct
Source§fn clone(&self) -> UriMemoryManagerStruct
fn clone(&self) -> UriMemoryManagerStruct
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 UriMemoryManagerStruct
impl Debug for UriMemoryManagerStruct
Source§impl Default for UriMemoryManagerStruct
impl Default for UriMemoryManagerStruct
impl Copy for UriMemoryManagerStruct
Auto Trait Implementations§
impl Freeze for UriMemoryManagerStruct
impl RefUnwindSafe for UriMemoryManagerStruct
impl !Send for UriMemoryManagerStruct
impl !Sync for UriMemoryManagerStruct
impl Unpin for UriMemoryManagerStruct
impl UnwindSafe for UriMemoryManagerStruct
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