pub struct ProtoDecoder<'a> { /* private fields */ }Expand description
Iterates over protobuf-encoded fields one at a time.
Implementations§
Source§impl<'a> ProtoDecoder<'a>
impl<'a> ProtoDecoder<'a>
pub fn new(buf: &'a [u8]) -> Self
pub fn next(&mut self) -> Option<ProtoField<'a>>
Sourcepub fn collect_fields(&mut self) -> Vec<ProtoField<'a>>
pub fn collect_fields(&mut self) -> Vec<ProtoField<'a>>
Collect all fields into a Vec for random-access lookup.
Auto Trait Implementations§
impl<'a> Freeze for ProtoDecoder<'a>
impl<'a> RefUnwindSafe for ProtoDecoder<'a>
impl<'a> Send for ProtoDecoder<'a>
impl<'a> Sync for ProtoDecoder<'a>
impl<'a> Unpin for ProtoDecoder<'a>
impl<'a> UnsafeUnpin for ProtoDecoder<'a>
impl<'a> UnwindSafe for ProtoDecoder<'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