pub struct PointerBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> PointerBuilder<'a>
impl<'a> PointerBuilder<'a>
pub fn get_root(
arena: &'a dyn BuilderArena,
segment_id: u32,
location: *mut u8
) -> Self
pub fn reborrow<'b>(&'b mut self) -> PointerBuilder<'b>
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(
&self,
value: &StructReader<'_>,
canonicalize: bool
) -> Result<()>
pub fn set_list(&self, value: &ListReader<'_>, canonicalize: bool) -> Result<()>
pub fn set_text(&self, value: &str)
pub fn set_data(&self, value: &[u8])
pub fn set_capability(&self, cap: Box<dyn ClientHook>)
pub fn copy_from(
&mut self,
other: PointerReader<'_>,
canonicalize: bool
) -> Result<()>
pub fn clear(&mut self)
pub fn into_reader(self) -> PointerReader<'a>
Trait Implementations
sourceimpl<'a> Clone for PointerBuilder<'a>
impl<'a> Clone for PointerBuilder<'a>
sourcefn clone(&self) -> PointerBuilder<'a>
fn clone(&self) -> PointerBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Copy for PointerBuilder<'a>
Auto Trait Implementations
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
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