Struct protobuf_codec::field::Fields
[−]
[src]
pub struct Fields<F> { /* fields omitted */ }
Decoder and encoder for multiple fields.
Methods
impl<F> Fields<F>
[src]
Trait Implementations
impl<F: Debug> Debug for Fields<F>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Default> Default for Fields<F>
[src]
impl Decode for Fields<()>
[src]
type Item = ()
The type of items to be decoded.
fn decode(&mut self, _buf: &[u8], _eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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 FieldDecode for Fields<()>
[src]
fn start_decoding(&mut self, _tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A> Decode for Fields<(A,)> where
A: FieldDecode,
[src]
A: FieldDecode,
type Item = (A::Item,)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A> FieldDecode for Fields<(A,)> where
A: FieldDecode,
[src]
A: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B> Decode for Fields<(A, B)> where
A: FieldDecode,
B: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
type Item = (A::Item, B::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B> FieldDecode for Fields<(A, B)> where
A: FieldDecode,
B: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C> Decode for Fields<(A, B, C)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
type Item = (A::Item, B::Item, C::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C> FieldDecode for Fields<(A, B, C)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C, D> Decode for Fields<(A, B, C, D)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
type Item = (A::Item, B::Item, C::Item, D::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C, D> FieldDecode for Fields<(A, B, C, D)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C, D, E> Decode for Fields<(A, B, C, D, E)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C, D, E> FieldDecode for Fields<(A, B, C, D, E)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C, D, E, F> Decode for Fields<(A, B, C, D, E, F)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C, D, E, F> FieldDecode for Fields<(A, B, C, D, E, F)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C, D, E, F, G> Decode for Fields<(A, B, C, D, E, F, G)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item, G::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C, D, E, F, G> FieldDecode for Fields<(A, B, C, D, E, F, G)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl<A, B, C, D, E, F, G, H> Decode for Fields<(A, B, C, D, E, F, G, H)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
H: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
H: FieldDecode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item, G::Item, H::Item)
The type of items to be decoded.
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
[src]
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
fn finish_decoding(&mut self) -> Result<Self::Item>
[src]
Finishes the current decoding process and returns the decoded item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be decoded by the decoder at the next invocation of decode
method, otherwise false
. 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<A, B, C, D, E, F, G, H> FieldDecode for Fields<(A, B, C, D, E, F, G, H)> where
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
H: FieldDecode,
[src]
A: FieldDecode,
B: FieldDecode,
C: FieldDecode,
D: FieldDecode,
E: FieldDecode,
F: FieldDecode,
G: FieldDecode,
H: FieldDecode,
fn start_decoding(&mut self, tag: Tag) -> Result<bool>
[src]
Tries to start decoding a field. Read more
impl Encode for Fields<()>
[src]
type Item = ()
The type of items to be encoded.
fn encode(&mut self, _buf: &mut [u8], _eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, _item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl SizedEncode for Fields<()>
[src]
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl FieldEncode for Fields<()>
[src]
impl<A> Encode for Fields<(A,)> where
A: FieldEncode,
[src]
A: FieldEncode,
type Item = (A::Item,)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A> SizedEncode for Fields<(A,)> where
A: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A> FieldEncode for Fields<(A,)> where
A: FieldEncode,
[src]
A: FieldEncode,
impl<A, B> Encode for Fields<(A, B)> where
A: FieldEncode,
B: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
type Item = (A::Item, B::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B> SizedEncode for Fields<(A, B)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B> FieldEncode for Fields<(A, B)> where
A: FieldEncode,
B: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
impl<A, B, C> Encode for Fields<(A, B, C)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
type Item = (A::Item, B::Item, C::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C> SizedEncode for Fields<(A, B, C)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C> FieldEncode for Fields<(A, B, C)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
impl<A, B, C, D> Encode for Fields<(A, B, C, D)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
type Item = (A::Item, B::Item, C::Item, D::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C, D> SizedEncode for Fields<(A, B, C, D)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C, D> FieldEncode for Fields<(A, B, C, D)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
impl<A, B, C, D, E> Encode for Fields<(A, B, C, D, E)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C, D, E> SizedEncode for Fields<(A, B, C, D, E)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C, D, E> FieldEncode for Fields<(A, B, C, D, E)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
impl<A, B, C, D, E, F> Encode for Fields<(A, B, C, D, E, F)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C, D, E, F> SizedEncode for Fields<(A, B, C, D, E, F)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C, D, E, F> FieldEncode for Fields<(A, B, C, D, E, F)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
impl<A, B, C, D, E, F, G> Encode for Fields<(A, B, C, D, E, F, G)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item, G::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C, D, E, F, G> SizedEncode for Fields<(A, B, C, D, E, F, G)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
G: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
G: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C, D, E, F, G> FieldEncode for Fields<(A, B, C, D, E, F, G)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
impl<A, B, C, D, E, F, G, H> Encode for Fields<(A, B, C, D, E, F, G, H)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
H: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
H: FieldEncode,
type Item = (A::Item, B::Item, C::Item, D::Item, E::Item, F::Item, G::Item, H::Item)
The type of items to be encoded.
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
[src]
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
impl<A, B, C, D, E, F, G, H> SizedEncode for Fields<(A, B, C, D, E, F, G, H)> where
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
G: FieldEncode + SizedEncode,
H: FieldEncode + SizedEncode,
[src]
A: FieldEncode + SizedEncode,
B: FieldEncode + SizedEncode,
C: FieldEncode + SizedEncode,
D: FieldEncode + SizedEncode,
E: FieldEncode + SizedEncode,
F: FieldEncode + SizedEncode,
G: FieldEncode + SizedEncode,
H: FieldEncode + SizedEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl<A, B, C, D, E, F, G, H> FieldEncode for Fields<(A, B, C, D, E, F, G, H)> where
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
H: FieldEncode,
[src]
A: FieldEncode,
B: FieldEncode,
C: FieldEncode,
D: FieldEncode,
E: FieldEncode,
F: FieldEncode,
G: FieldEncode,
H: FieldEncode,