Struct uriparser_sys::UriMemoryManagerStruct[][src]

#[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,
}

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

impl Clone for UriMemoryManagerStruct[src]

impl Copy for UriMemoryManagerStruct[src]

impl Debug for UriMemoryManagerStruct[src]

impl Default for UriMemoryManagerStruct[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.