pub struct AllocatedChunk { /* private fields */ }
Implementations§
Source§impl AllocatedChunk
impl AllocatedChunk
pub const INVALID: Self
pub unsafe fn write_bytes_noextend_single_thread( &self, data: *const u8, len: usize, )
pub unsafe fn write_zero_bytes_noextend_single_thread(&self, len: usize)
pub unsafe fn prealloc_bytes_single_thread( &self, len: usize, ) -> &'static mut [u8] ⓘ
pub fn write_bytes_noextend(&self, data: &[u8]) -> Option<u64>
pub fn has_space_for(&self, len: usize) -> bool
pub unsafe fn get_mut_slice(&self) -> &'static mut [u8] ⓘ
pub unsafe fn get_mut_ptr(&self) -> *mut u8
pub unsafe fn get_object_reference_mut<T>( &self, offset_in_bytes: usize, ) -> &'static mut T
pub fn len(&self) -> usize
pub fn max_len(&self) -> usize
pub fn remaining_bytes(&self) -> usize
pub fn clear(&self)
pub fn get(&self) -> &[u8] ⓘ
pub unsafe fn set_len(&self, len: usize)
Trait Implementations§
Source§impl Clone for AllocatedChunk
impl Clone for AllocatedChunk
Source§impl Drop for AllocatedChunk
impl Drop for AllocatedChunk
impl Send for AllocatedChunk
impl Sync for AllocatedChunk
Auto Trait Implementations§
impl !Freeze for AllocatedChunk
impl RefUnwindSafe for AllocatedChunk
impl Unpin for AllocatedChunk
impl UnwindSafe for AllocatedChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more