pub struct AlignedBuf { /* private fields */ }Implementations§
Source§impl AlignedBuf
impl AlignedBuf
pub fn new(size: usize, align: usize) -> Result<Self, Error>
pub fn new_page_aligned(size: usize) -> Result<Self, Error>
pub fn from_slice(data: &[u8], align: usize) -> Result<Self, Error>
pub fn from_slice_page_aligned(data: &[u8]) -> Result<Self, Error>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_ptr(&self) -> *const u8
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Debug for AlignedBuf
impl Debug for AlignedBuf
Source§impl Drop for AlignedBuf
impl Drop for AlignedBuf
impl Send for AlignedBuf
impl Sync for AlignedBuf
Auto Trait Implementations§
impl Freeze for AlignedBuf
impl RefUnwindSafe for AlignedBuf
impl Unpin for AlignedBuf
impl UnsafeUnpin for AlignedBuf
impl UnwindSafe for AlignedBuf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more