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]
pub unsafe fn new(
num_elements: usize,
alloc: AllocatorC,
free: unsafe extern "C" fn(_: *mut u8),
should_free: bool
) -> Self
[src]
num_elements: usize,
alloc: AllocatorC,
free: unsafe extern "C" 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
[src]
Formats the value using the given formatter. Read more