Struct mesh::payload::protobuf::PackedReader
source · pub struct PackedReader<'a> { /* private fields */ }
Expand description
Reader for packed fields.
Implementations§
source§impl<'a> PackedReader<'a>
impl<'a> PackedReader<'a>
sourcepub fn varint(&mut self) -> Result<Option<u64>, Error>
pub fn varint(&mut self) -> Result<Option<u64>, Error>
Reads a varint.
Returns Ok(None)
if there are no more values.
sourcepub fn svarint(&mut self) -> Result<Option<i64>, Error>
pub fn svarint(&mut self) -> Result<Option<i64>, Error>
Reads a signed (zigzag-encoded) varint.
Returns Ok(None)
if there are no more values.
Auto Trait Implementations§
impl<'a> Freeze for PackedReader<'a>
impl<'a> RefUnwindSafe for PackedReader<'a>
impl<'a> Send for PackedReader<'a>
impl<'a> Sync for PackedReader<'a>
impl<'a> Unpin for PackedReader<'a>
impl<'a> UnwindSafe for PackedReader<'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