Struct bytecodec::tuple::TupleDecoder [−][src]
Decoder for tuples.
Implementations
impl<D> TupleDecoder<D>
[src]
pub fn new(inner: D) -> Self
[src]
Makes a new TupleDecoder
.
pub fn inner_ref(&self) -> &D
[src]
Returns a reference to the inner decoders.
pub fn inner_mut(&mut self) -> &mut D
[src]
Returns a mutable reference to the inner decoders.
pub fn into_inner(self) -> D
[src]
Takes ownership of this instance and returns the inner decoders.
Trait Implementations
impl<D: Debug> Debug for TupleDecoder<D>
[src]
impl<D0, D1> Decode for TupleDecoder<(D0, D1)> where
D0: Decode,
D1: Decode,
[src]
D0: Decode,
D1: Decode,
type Item = (D0::Item, D1::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2> Decode for TupleDecoder<(D0, D1, D2)> where
D0: Decode,
D1: Decode,
D2: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
type Item = (D0::Item, D1::Item, D2::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2, D3> Decode for TupleDecoder<(D0, D1, D2, D3)> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2, D3, D4> Decode for TupleDecoder<(D0, D1, D2, D3, D4)> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item, D4::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2, D3, D4, D5> Decode for TupleDecoder<(D0, D1, D2, D3, D4, D5)> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item, D4::Item, D5::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2, D3, D4, D5, D6> Decode for TupleDecoder<(D0, D1, D2, D3, D4, D5, D6)> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
D6: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
D6: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item, D4::Item, D5::Item, D6::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D0, D1, D2, D3, D4, D5, D6, D7> Decode for TupleDecoder<(D0, D1, D2, D3, D4, D5, D6, D7)> where
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
D6: Decode,
D7: Decode,
[src]
D0: Decode,
D1: Decode,
D2: Decode,
D3: Decode,
D4: Decode,
D5: Decode,
D6: Decode,
D7: Decode,
type Item = (D0::Item, D1::Item, D2::Item, D3::Item, D4::Item, D5::Item, D6::Item, D7::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
fn requiring_bytes(&self) -> ByteCount
[src]
fn is_idle(&self) -> bool
[src]
impl<D: Default> Default for TupleDecoder<D>
[src]
fn default() -> TupleDecoder<D>
[src]
Auto Trait Implementations
impl<D> RefUnwindSafe for TupleDecoder<D> where
D: RefUnwindSafe,
D: RefUnwindSafe,
impl<D> Send for TupleDecoder<D> where
D: Send,
D: Send,
impl<D> Sync for TupleDecoder<D> where
D: Sync,
D: Sync,
impl<D> Unpin for TupleDecoder<D> where
D: Unpin,
D: Unpin,
impl<D> UnwindSafe for TupleDecoder<D> where
D: UnwindSafe,
D: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IoDecodeExt for T where
T: Decode,
[src]
T: Decode,
fn decode_from_read_buf<B>(&mut self, buf: &mut ReadBuf<B>) -> Result<()> where
B: AsRef<[u8]>,
[src]
B: AsRef<[u8]>,
fn decode_exact<R: Read>(&mut self, reader: R) -> Result<Self::Item>
[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.
pub 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>,