pub struct BuilderArenaImpl<A> where
A: Allocator, { /* private fields */ }
Implementations
sourceimpl<A> BuilderArenaImpl<A> where
A: Allocator,
impl<A> BuilderArenaImpl<A> where
A: Allocator,
pub fn new(allocator: A) -> Self
pub fn allocate_segment(&self, minimum_size: u32) -> Result<()>
pub fn get_segments_for_output<'a>(&'a self) -> OutputSegments<'a>
pub fn len(&self) -> usize
pub fn into_allocator(self) -> A
Trait Implementations
sourceimpl<A> BuilderArena for BuilderArenaImpl<A> where
A: Allocator,
impl<A> BuilderArena for BuilderArenaImpl<A> where
A: Allocator,
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<'a>(&'a self) -> &'a dyn ReaderArena
sourceimpl<A> ReaderArena for BuilderArenaImpl<A> where
A: Allocator,
impl<A> ReaderArena for BuilderArenaImpl<A> where
A: Allocator,
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<A> !RefUnwindSafe for BuilderArenaImpl<A>
impl<A> !Send for BuilderArenaImpl<A>
impl<A> !Sync for BuilderArenaImpl<A>
impl<A> Unpin for BuilderArenaImpl<A> where
A: Unpin,
impl<A> UnwindSafe for BuilderArenaImpl<A> where
A: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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