pub struct Decoder {
pub pos: usize,
pub encoded: Vec<u8>,
}Fields§
§pos: usize§encoded: Vec<u8>Implementations§
Source§impl Decoder
impl Decoder
pub fn available(&self) -> bool
pub fn read_tag(&mut self) -> (u32, u32)
pub fn read_varint(&mut self) -> u64
pub fn read_length_delimited(&mut self) -> u64
pub fn read_string(&mut self, _wire_type: u32) -> String
pub fn read_int32(&mut self, _wire_type: u32) -> i32
pub fn seek(&mut self, offset: u32)
pub fn skip_field(&mut self, wire_type: u32)
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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