pub struct StructReader<'a> { /* private fields */ }
Implementations
sourceimpl<'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]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [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
sourceimpl<'a> Clone for StructReader<'a>
impl<'a> Clone for StructReader<'a>
sourcefn clone(&self) -> StructReader<'a>
fn clone(&self) -> StructReader<'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 StructReader<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for StructReader<'a>
impl<'a> !Send for StructReader<'a>
impl<'a> !Sync for StructReader<'a>
impl<'a> Unpin for StructReader<'a>
impl<'a> !UnwindSafe for StructReader<'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