Struct capnp::private::layout::PointerBuilder
source · pub struct PointerBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> PointerBuilder<'a>
impl<'a> PointerBuilder<'a>
pub fn get_root( arena: &'a mut dyn BuilderArena, segment_id: u32, location: *mut u8, ) -> Self
pub fn reborrow(&mut self) -> PointerBuilder<'_>
pub fn imbue(&mut self, cap_table: CapTableBuilder)
pub fn is_null(&self) -> bool
pub fn get_struct( self, size: StructSize, default: Option<&'a [Word]>, ) -> Result<StructBuilder<'a>>
pub fn get_list( self, element_size: ElementSize, default: Option<&'a [Word]>, ) -> Result<ListBuilder<'a>>
pub fn get_struct_list( self, element_size: StructSize, default: Option<&'a [Word]>, ) -> Result<ListBuilder<'a>>
pub fn get_text(self, default: Option<&'a [Word]>) -> Result<Builder<'a>>
pub fn get_data(self, default: Option<&'a [Word]>) -> Result<Builder<'a>>
pub fn get_capability(&self) -> Result<Box<dyn ClientHook>>
pub fn init_struct(self, size: StructSize) -> StructBuilder<'a>
pub fn init_list( self, element_size: ElementSize, element_count: ElementCount32, ) -> ListBuilder<'a>
pub fn init_struct_list( self, element_count: ElementCount32, element_size: StructSize, ) -> ListBuilder<'a>
pub fn init_text(self, size: ByteCount32) -> Builder<'a>
pub fn init_data(self, size: ByteCount32) -> Builder<'a>
pub fn set_struct( &mut self, value: &StructReader<'_>, canonicalize: bool, ) -> Result<()>
pub fn set_list( &mut self, value: &ListReader<'_>, canonicalize: bool, ) -> Result<()>
pub fn set_text(&mut self, value: Reader<'_>)
pub fn set_data(&mut self, value: &[u8])
pub fn set_capability(&mut self, cap: Box<dyn ClientHook>)
pub fn copy_from( &mut self, other: PointerReader<'_>, canonicalize: bool, ) -> Result<()>
pub fn clear(&mut self)
pub fn as_reader(&self) -> PointerReader<'_>
pub fn into_reader(self) -> PointerReader<'a>
Auto Trait Implementations§
impl<'a> Freeze for PointerBuilder<'a>
impl<'a> !RefUnwindSafe for PointerBuilder<'a>
impl<'a> !Send for PointerBuilder<'a>
impl<'a> !Sync for PointerBuilder<'a>
impl<'a> Unpin for PointerBuilder<'a>
impl<'a> !UnwindSafe for PointerBuilder<'a>
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