Struct kalloc::guard::AllocGuard [−][src]
pub struct AllocGuard { /* fields omitted */ }
Expand description
Smart pointer guard.
Implementations
impl AllocGuard
[src]
impl AllocGuard
[src]pub fn new(layout: Layout) -> Result<Self, AllocError>
[src]
pub fn new(layout: Layout) -> Result<Self, AllocError>
[src]Create a new smart pointer.
pub fn as_mut_slice(&self) -> &mut [u8]ⓘ
[src]
pub fn as_mut_slice(&self) -> &mut [u8]ⓘ
[src]Extract the mutable slice.