pub struct NullArena;
Trait Implementations
sourceimpl BuilderArena for NullArena
impl BuilderArena for NullArena
fn allocate(&self, _segment_id: u32, _amount: WordCount32) -> Option<u32>
fn allocate_anywhere(&self, _amount: u32) -> (SegmentId, u32)
fn get_segment_mut(&self, _id: u32) -> (*mut u8, u32)
fn as_reader(&self) -> &dyn ReaderArena
sourceimpl ReaderArena for NullArena
impl ReaderArena for NullArena
fn get_segment(&self, _id: u32) -> Result<(*const u8, u32)>
fn check_offset(
&self,
_segment_id: u32,
start: *const u8,
offset_in_words: i32
) -> Result<*const u8>
fn contains_interval(
&self,
_id: u32,
_start: *const u8,
_size: usize
) -> Result<()>
fn amplified_read(&self, _virtual_amount: u64) -> Result<()>
fn nesting_limit(&self) -> i32
Auto Trait Implementations
impl RefUnwindSafe for NullArena
impl Send for NullArena
impl Sync for NullArena
impl Unpin for NullArena
impl UnwindSafe for NullArena
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more