Struct capnp::private::arena::BuilderArenaImpl
source · 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
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 Word, 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 Word, u32)>
fn check_offset(
&self,
_segment_id: u32,
start: *const Word,
offset_in_words: i32
) -> Result<*const Word>
fn contains_interval(
&self,
_id: u32,
_start: *const Word,
_size: usize
) -> Result<()>
fn amplified_read(&self, _virtual_amount: u64) -> Result<()>
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 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