pub unsafe trait Buf: ConstDefault {
// Required methods
fn as_ptr(&self) -> *const u8;
fn as_mut_ptr(&mut self) -> *mut u8;
fn align() -> usize;
fn len() -> usize;
}Expand description
Stack-allocated space.
Safety
This trait can be implemented only through unconditional delegating to another implementation.
Required Methods§
sourcefn as_mut_ptr(&mut self) -> *mut u8
fn as_mut_ptr(&mut self) -> *mut u8
Allocated space location as a mutable pointer.
Object Safety§
This trait is not object safe.