pub struct Reader<'a> { /* private fields */ }Expand description
A cursor over a byte slice that reads little-endian values.
Implementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
Sourcepub fn uint_n(&mut self, width: usize) -> Result<u64, Truncated>
pub fn uint_n(&mut self, width: usize) -> Result<u64, Truncated>
A little-endian unsigned integer of width bytes (1 to 8).
Sourcepub fn ext_pan_id(&mut self) -> Result<ExtPanId, Truncated>
pub fn ext_pan_id(&mut self) -> Result<ExtPanId, Truncated>
An extended PAN id in wire order.
Sourcepub fn u8_prefixed(&mut self) -> Result<&'a [u8], Truncated>
pub fn u8_prefixed(&mut self) -> Result<&'a [u8], Truncated>
A byte string prefixed by a one-byte length.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'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