pub struct ArenaSlice { /* private fields */ }Implementations§
Source§impl ArenaSlice
impl ArenaSlice
pub const fn new(offset: usize, len: usize) -> Self
pub const fn empty() -> Self
pub const fn offset(&self) -> usize
pub const fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub unsafe fn resolve<'a>(&self, arena_base: *const u8) -> &'a [u8] ⓘ
pub unsafe fn resolve_mut<'a>(&self, arena_base: *mut u8) -> &'a mut [u8] ⓘ
pub fn validate(&self, arena_size: usize) -> Result<()>
pub unsafe fn from_ptr( arena_base: *const u8, ptr: *const u8, len: usize, ) -> Result<Self>
pub const fn end(&self) -> usize
pub fn sub_slice(&self, start: usize, len: usize) -> Result<Self>
Trait Implementations§
Source§impl Clone for ArenaSlice
impl Clone for ArenaSlice
Source§fn clone(&self) -> ArenaSlice
fn clone(&self) -> ArenaSlice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArenaSlice
impl Debug for ArenaSlice
Source§impl Hash for ArenaSlice
impl Hash for ArenaSlice
Source§impl PartialEq for ArenaSlice
impl PartialEq for ArenaSlice
impl Copy for ArenaSlice
impl Eq for ArenaSlice
impl StructuralPartialEq for ArenaSlice
Auto Trait Implementations§
impl Freeze for ArenaSlice
impl RefUnwindSafe for ArenaSlice
impl Send for ArenaSlice
impl Sync for ArenaSlice
impl Unpin for ArenaSlice
impl UnsafeUnpin for ArenaSlice
impl UnwindSafe for ArenaSlice
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