Struct alloc_no_stdlib::CallocBackingStore [] [src]

pub struct CallocBackingStore<'a, T: 'a> {
    pub raw_data: *mut u8,
    pub data: &'a mut [T],
    // some fields omitted
}

Fields

raw_data: *mut u8 data: &'a mut [T]

Methods

impl<'a, T: 'a> CallocBackingStore<'a, T>
[src]

unsafe fn new(num_elements: usize, alloc: AllocatorC, free: unsafe extern fn(*mut u8), should_free: bool) -> Self

Trait Implementations

impl<'a, T: Debug + 'a> Debug for CallocBackingStore<'a, T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a, T: 'a> Drop for CallocBackingStore<'a, T>
[src]

fn drop(self: &mut Self)

A method called when the value goes out of scope. Read more