[−][src]Struct protobuf_codec::field::PackedFieldDecoder
Decoder for packed repeated fields.
Actually this can decode fields regardless of whether they are packed or not.
Methods
impl<F, D, V> PackedFieldDecoder<F, D, V> where
D: NumericValueDecode,
V: Default + Extend<D::Item>,
[src]
D: NumericValueDecode,
V: Default + Extend<D::Item>,
Trait Implementations
impl<F, D, V> FieldDecode for PackedFieldDecoder<F, D, V> where
F: Copy + Into<FieldNum>,
D: NumericValueDecode,
V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>,
[src]
F: Copy + Into<FieldNum>,
D: NumericValueDecode,
V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
impl<F: Default, D: Default, V: Default> Default for PackedFieldDecoder<F, D, V> where
D: NumericValueDecode,
V: Default + Extend<D::Item>,
[src]
D: NumericValueDecode,
V: Default + Extend<D::Item>,
fn default() -> PackedFieldDecoder<F, D, V>
[src]
impl<F: Debug, D: Debug, V: Debug> Debug for PackedFieldDecoder<F, D, V> where
D: NumericValueDecode,
V: Default + Extend<D::Item>,
[src]
D: NumericValueDecode,
V: Default + Extend<D::Item>,
impl<F, D, V> Decode for PackedFieldDecoder<F, D, V> where
F: Copy + Into<FieldNum>,
D: NumericValueDecode,
V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>,
[src]
F: Copy + Into<FieldNum>,
D: NumericValueDecode,
V: Default + Extend<D::Item> + IntoIterator<Item = D::Item>,
Auto Trait Implementations
impl<F, D, V> Send for PackedFieldDecoder<F, D, V> where
D: Send,
F: Send,
V: Send,
D: Send,
F: Send,
V: Send,
impl<F, D, V> Unpin for PackedFieldDecoder<F, D, V> where
D: Unpin,
F: Unpin,
V: Unpin,
D: Unpin,
F: Unpin,
V: Unpin,
impl<F, D, V> Sync for PackedFieldDecoder<F, D, V> where
D: Sync,
F: Sync,
V: Sync,
D: Sync,
F: Sync,
V: Sync,
impl<F, D, V> UnwindSafe for PackedFieldDecoder<F, D, V> where
D: UnwindSafe,
F: UnwindSafe,
V: UnwindSafe,
D: UnwindSafe,
F: UnwindSafe,
V: UnwindSafe,
impl<F, D, V> RefUnwindSafe for PackedFieldDecoder<F, D, V> where
D: RefUnwindSafe,
F: RefUnwindSafe,
V: RefUnwindSafe,
D: RefUnwindSafe,
F: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IoDecodeExt for T where
T: Decode,
[src]
T: Decode,
fn decode_from_read_buf<B>(&mut self, buf: &mut ReadBuf<B>) -> Result<(), Error> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn decode_exact<R>(&mut self, reader: R) -> Result<Self::Item, Error> where
R: Read,
[src]
R: Read,
impl<T> DecodeExt for T where
T: Decode,
[src]
T: Decode,
fn map<T, F>(self, f: F) -> Map<Self, T, F> where
F: Fn(Self::Item) -> T,
[src]
F: Fn(Self::Item) -> T,
fn try_map<T, E, F>(self, f: F) -> TryMap<Self, T, E, F> where
F: Fn(Self::Item) -> Result<T, E>,
Error: From<E>,
[src]
F: Fn(Self::Item) -> Result<T, E>,
Error: From<E>,
fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F> where
F: Fn(Error) -> E,
Error: From<E>,
[src]
F: Fn(Error) -> E,
Error: From<E>,
fn and_then<D, F>(self, f: F) -> AndThen<Self, D, F> where
D: Decode,
F: Fn(Self::Item) -> D,
[src]
D: Decode,
F: Fn(Self::Item) -> D,
fn collect<T>(self) -> Collect<Self, T> where
T: Extend<Self::Item> + Default,
[src]
T: Extend<Self::Item> + Default,
fn collectn<T>(self, n: usize) -> CollectN<Self, T> where
T: Extend<Self::Item> + Default,
[src]
T: Extend<Self::Item> + Default,
fn length(self, expected_bytes: u64) -> Length<Self>
[src]
fn omit(self, do_omit: bool) -> Omittable<Self>
[src]
fn max_bytes(self, bytes: u64) -> MaxBytes<Self>
[src]
fn chain<T>(self, other: T) -> TupleDecoder<(Self, T)> where
T: Decode,
[src]
T: Decode,