#[repr(C)]pub struct spng_alloc {
pub malloc_fn: spng_malloc_fn,
pub realloc_fn: spng_realloc_fn,
pub calloc_fn: spng_calloc_fn,
pub free_fn: spng_free_fn,
}Fields§
§malloc_fn: spng_malloc_fn§realloc_fn: spng_realloc_fn§calloc_fn: spng_calloc_fn§free_fn: spng_free_fnTrait Implementations§
Source§impl Clone for spng_alloc
impl Clone for spng_alloc
impl Copy for spng_alloc
Auto Trait Implementations§
impl Freeze for spng_alloc
impl RefUnwindSafe for spng_alloc
impl Send for spng_alloc
impl Sync for spng_alloc
impl Unpin for spng_alloc
impl UnsafeUnpin for spng_alloc
impl UnwindSafe for spng_alloc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more