Struct capnp::private::layout::StructBuilder
source · pub struct StructBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> StructBuilder<'a>
impl<'a> StructBuilder<'a>
pub fn reborrow(&mut self) -> StructBuilder<'_>
pub fn as_reader(&self) -> StructReader<'_>
pub fn into_reader(self) -> StructReader<'a>
pub fn imbue(&mut self, cap_table: CapTableBuilder)
pub fn set_data_field<T: Primitive>(&self, offset: ElementCount, value: T)
pub fn set_data_field_mask<T: Primitive + Mask>( &self, offset: ElementCount, value: T, mask: <T as Mask>::T )
pub fn get_data_field<T: Primitive>(&self, offset: ElementCount) -> T
pub fn get_data_field_mask<T: Primitive + Mask>( &self, offset: ElementCount, mask: <T as Mask>::T ) -> T
pub fn set_bool_field(&self, offset: ElementCount, value: bool)
pub fn set_bool_field_mask(&self, offset: ElementCount, value: bool, mask: bool)
pub fn get_bool_field(&self, offset: ElementCount) -> bool
pub fn get_bool_field_mask(&self, offset: ElementCount, mask: bool) -> bool
pub fn get_pointer_field( self, ptr_index: WirePointerCount ) -> PointerBuilder<'a>
pub fn is_pointer_field_null(&self, ptr_index: WirePointerCount) -> bool
pub fn copy_content_from(&mut self, other: &StructReader<'_>) -> Result<()>
Trait Implementations§
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<StructBuilder<'a>> for Builder<'a>
impl<'a> From<StructBuilder<'a>> for Builder<'a>
source§fn from(builder: StructBuilder<'a>) -> Self
fn from(builder: StructBuilder<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for StructBuilder<'a>
impl<'a> !RefUnwindSafe for StructBuilder<'a>
impl<'a> !Send for StructBuilder<'a>
impl<'a> !Sync for StructBuilder<'a>
impl<'a> Unpin for StructBuilder<'a>
impl<'a> !UnwindSafe for StructBuilder<'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