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 "C" fn(_: *mut u8),
should_free: bool
) -> Self
num_elements: usize,
alloc: AllocatorC,
free: unsafe extern "C" fn(_: *mut u8),
should_free: bool
) -> Self