[][src]Struct pbtools::Decoder

pub struct Decoder {
    pub pos: usize,
    pub encoded: Vec<u8>,
}

Fields

pos: usizeencoded: Vec<u8>

Implementations

impl Decoder[src]

pub fn available(&self) -> bool[src]

pub fn read_tag(&mut self) -> (u32, u32)[src]

pub fn read_varint(&mut self) -> u64[src]

pub fn read_length_delimited(&mut self) -> u64[src]

pub fn read_string(&mut self, _wire_type: u32) -> String[src]

pub fn read_int32(&mut self, _wire_type: u32) -> i32[src]

pub fn seek(&mut self, offset: u32)[src]

pub fn skip_field(&mut self, wire_type: u32)[src]

Auto Trait Implementations

impl RefUnwindSafe for Decoder

impl Send for Decoder

impl Sync for Decoder

impl Unpin for Decoder

impl UnwindSafe for Decoder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.