Struct capnp::private::layout::StructReader
source · pub struct StructReader<'a> { /* private fields */ }
Implementations§
source§impl<'a> StructReader<'a>
impl<'a> StructReader<'a>
pub fn new_default<'b>() -> StructReader<'b>
pub fn imbue(&mut self, cap_table: CapTableReader)
pub fn get_data_section_size(&self) -> BitCount32
pub fn get_pointer_section_size(&self) -> WirePointerCount16
pub fn get_pointer_section_as_list(&self) -> ListReader<'a>
pub fn get_data_section_as_blob(&self) -> &'a [u8] ⓘ
pub fn get_data_field<T: Primitive + Zero>(&self, offset: ElementCount) -> T
pub fn get_bool_field(&self, offset: ElementCount) -> bool
pub fn get_data_field_mask<T: Primitive + Zero + Mask>(
&self,
offset: ElementCount,
mask: <T as Mask>::T
) -> T
pub fn get_bool_field_mask(&self, offset: ElementCount, mask: bool) -> bool
pub fn get_pointer_field(&self, ptr_index: WirePointerCount) -> PointerReader<'a>
pub fn total_size(&self) -> Result<MessageSize>
pub fn is_canonical(
&self,
read_head: &Cell<*const u8>,
ptr_head: &Cell<*const u8>,
data_trunc: &mut bool,
ptr_trunc: &mut bool
) -> Result<bool>
Trait Implementations§
source§impl<'a> Clone for StructReader<'a>
impl<'a> Clone for StructReader<'a>
source§fn clone(&self) -> StructReader<'a>
fn clone(&self) -> StructReader<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more