Struct capnp::private::layout::PointerBuilder

source ·
pub struct PointerBuilder<'a> { /* private fields */ }

Implementations§

source§

impl<'a> PointerBuilder<'a>

source

pub fn get_root( arena: &'a mut dyn BuilderArena, segment_id: u32, location: *mut u8 ) -> Self

source

pub fn reborrow(&mut self) -> PointerBuilder<'_>

source

pub fn imbue(&mut self, cap_table: CapTableBuilder)

source

pub fn is_null(&self) -> bool

source

pub fn get_struct( self, size: StructSize, default: Option<&'a [Word]> ) -> Result<StructBuilder<'a>>

source

pub fn get_list( self, element_size: ElementSize, default: Option<&'a [Word]> ) -> Result<ListBuilder<'a>>

source

pub fn get_struct_list( self, element_size: StructSize, default: Option<&'a [Word]> ) -> Result<ListBuilder<'a>>

source

pub fn get_text(self, default: Option<&'a [Word]>) -> Result<Builder<'a>>

source

pub fn get_data(self, default: Option<&'a [Word]>) -> Result<Builder<'a>>

source

pub fn get_capability(&self) -> Result<Box<dyn ClientHook>>

source

pub fn init_struct(self, size: StructSize) -> StructBuilder<'a>

source

pub fn init_list( self, element_size: ElementSize, element_count: ElementCount32 ) -> ListBuilder<'a>

source

pub fn init_struct_list( self, element_count: ElementCount32, element_size: StructSize ) -> ListBuilder<'a>

source

pub fn init_text(self, size: ByteCount32) -> Builder<'a>

source

pub fn init_data(self, size: ByteCount32) -> Builder<'a>

source

pub fn set_struct( &mut self, value: &StructReader<'_>, canonicalize: bool ) -> Result<()>

source

pub fn set_list( &mut self, value: &ListReader<'_>, canonicalize: bool ) -> Result<()>

source

pub fn set_text(&mut self, value: Reader<'_>)

source

pub fn set_data(&mut self, value: &[u8])

source

pub fn set_capability(&mut self, cap: Box<dyn ClientHook>)

source

pub fn copy_from( &mut self, other: PointerReader<'_>, canonicalize: bool ) -> Result<()>

source

pub fn clear(&mut self)

source

pub fn as_reader(&self) -> PointerReader<'_>

source

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.