Struct redis_module::alloc::RedisAlloc
source · [−]pub struct RedisAlloc;Trait Implementations
sourceimpl GlobalAlloc for RedisAlloc
impl GlobalAlloc for RedisAlloc
sourceunsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given layout. Read more
sourceunsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout)
unsafe fn dealloc(&self, ptr: *mut u8, _layout: Layout)
Deallocate the block of memory at the given ptr pointer with the given layout. Read more
Auto Trait Implementations
impl RefUnwindSafe for RedisAlloc
impl Send for RedisAlloc
impl Sync for RedisAlloc
impl Unpin for RedisAlloc
impl UnwindSafe for RedisAlloc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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