Struct capnp::private::layout::PointerReader
source · pub struct PointerReader<'a> { /* private fields */ }
Implementations§
source§impl<'a> PointerReader<'a>
impl<'a> PointerReader<'a>
pub fn new_default<'b>() -> PointerReader<'b>
pub fn get_root(
arena: &'a dyn ReaderArena,
segment_id: u32,
location: *const u8,
nesting_limit: i32
) -> Result<Self>
pub fn reborrow(&self) -> PointerReader<'_>
pub fn get_root_unchecked<'b>(location: *const u8) -> PointerReader<'b>
pub fn imbue(&mut self, cap_table: CapTableReader)
pub fn is_null(&self) -> bool
pub fn total_size(&self) -> Result<MessageSize>
pub fn get_struct(self, default: Option<&'a [Word]>) -> Result<StructReader<'a>>
pub fn get_list(
self,
expected_element_size: ElementSize,
default: Option<&'a [Word]>
) -> Result<ListReader<'a>>
pub fn get_text(self, default: Option<&[Word]>) -> Result<Reader<'a>>
pub fn get_data(&self, default: Option<&'a [Word]>) -> Result<Reader<'a>>
pub fn get_capability(&self) -> Result<Box<dyn ClientHook>>
pub fn get_pointer_type(&self) -> Result<PointerType>
pub fn is_canonical(&self, read_head: &Cell<*const u8>) -> Result<bool>
Trait Implementations§
source§impl<'a> Clone for PointerReader<'a>
impl<'a> Clone for PointerReader<'a>
source§fn clone(&self) -> PointerReader<'a>
fn clone(&self) -> PointerReader<'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