Struct bytecodec::combinator::DecoderChain
[−]
[src]
pub struct DecoderChain<D0: Decode, D1, T>(_, _);
Combinator for connecting decoders to a chain.
This is created by calling StartDecoderChain::chain
or DecodeExt::chain
methods.
Trait Implementations
impl<D0: Debug + Decode, D1: Debug, T: Debug> Debug for DecoderChain<D0, D1, T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<D> Decode for DecoderChain<StartDecoderChain, D, ()> where
D: Decode,
[src]
D: Decode,
type Item = (D::Item,)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0> Decode for DecoderChain<D0, D1, (T0,)> where
D0: Decode<Item = (T0,)>,
D1: Decode,
[src]
D0: Decode<Item = (T0,)>,
D1: Decode,
type Item = (T0, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1> Decode for DecoderChain<D0, D1, (T0, T1)> where
D0: Decode<Item = (T0, T1)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1)>,
D1: Decode,
type Item = (T0, T1, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2> Decode for DecoderChain<D0, D1, (T0, T1, T2)> where
D0: Decode<Item = (T0, T1, T2)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2)>,
D1: Decode,
type Item = (T0, T1, T2, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3)> where
D0: Decode<Item = (T0, T1, T2, T3)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3)>,
D1: Decode,
type Item = (T0, T1, T2, T3, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4)> where
D0: Decode<Item = (T0, T1, T2, T3, T4)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4, T5> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4, T5)> where
D0: Decode<Item = (T0, T1, T2, T3, T4, T5)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4, T5)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, T5, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more
impl<D0, D1, T0, T1, T2, T3, T4, T5, T6> Decode for DecoderChain<D0, D1, (T0, T1, T2, T3, T4, T5, T6)> where
D0: Decode<Item = (T0, T1, T2, T3, T4, T5, T6)>,
D1: Decode,
[src]
D0: Decode<Item = (T0, T1, T2, T3, T4, T5, T6)>,
D1: Decode,
type Item = (T0, T1, T2, T3, T4, T5, T6, D1::Item)
The type of items to be decoded.
fn decode(
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
[src]
&mut self,
buf: &[u8],
eos: Eos
) -> Result<(usize, Option<Self::Item>)>
Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the lower bound of the number of bytes needed to decode the next item. Read more