pub struct Decoder2<A, B>{ /* private fields */ }Expand description
A decoder which wraps two inner decoders and returns the output of both.
Implementations§
Trait Implementations§
Source§impl<A, B> Decoder for Decoder2<A, B>
impl<A, B> Decoder for Decoder2<A, B>
Source§type Output = (<A as Decoder>::Output, <B as Decoder>::Output)
type Output = (<A as Decoder>::Output, <B as Decoder>::Output)
The type that this decoder produces when decoding is complete.
Source§type Error = Decoder2Error<<A as Decoder>::Error, <B as Decoder>::Error>
type Error = Decoder2Error<<A as Decoder>::Error, <B as Decoder>::Error>
The error type that this decoder can produce.
Source§fn push_bytes(
&mut self,
bytes: &mut &[u8],
) -> Result<DecoderStatus, Self::Error>
fn push_bytes( &mut self, bytes: &mut &[u8], ) -> Result<DecoderStatus, Self::Error>
Pushes bytes into the decoder, consuming as much as possible. Read more
Source§fn end(self) -> Result<Self::Output, Self::Error>
fn end(self) -> Result<Self::Output, Self::Error>
Completes the decoding process and returns the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Auto Trait Implementations§
impl<A, B> Freeze for Decoder2<A, B>
impl<A, B> RefUnwindSafe for Decoder2<A, B>
impl<A, B> Send for Decoder2<A, B>
impl<A, B> Sync for Decoder2<A, B>
impl<A, B> Unpin for Decoder2<A, B>
impl<A, B> UnsafeUnpin for Decoder2<A, B>
impl<A, B> UnwindSafe for Decoder2<A, B>
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