pub struct Fields<F> { /* private fields */ }
Expand description
Decoder and encoder for multiple fields.
Implementations§
Trait Implementations§
Source§impl Decode for Fields<()>
impl Decode for Fields<()>
Source§fn decode(&mut self, _buf: &[u8], _eos: Eos) -> Result<usize>
fn decode(&mut self, _buf: &[u8], _eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl<A> Decode for Fields<(A,)>where
A: FieldDecode,
impl<A> Decode for Fields<(A,)>where
A: FieldDecode,
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl<A, B> Decode for Fields<(A, B)>where
A: FieldDecode,
B: FieldDecode,
impl<A, B> Decode for Fields<(A, B)>where
A: FieldDecode,
B: FieldDecode,
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl<A, B, C> Decode for Fields<(A, B, C)>
impl<A, B, C> Decode for Fields<(A, B, C)>
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl<A, B, C, D> Decode for Fields<(A, B, C, D)>
impl<A, B, C, D> Decode for Fields<(A, B, C, D)>
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl<A, B, C, D, E> Decode for Fields<(A, B, C, D, E)>
impl<A, B, C, D, E> Decode for Fields<(A, B, C, D, E)>
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§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,
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,
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§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,
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,
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item, <G as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item, <G as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§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,
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,
Source§type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item, <G as Decode>::Item, <H as Decode>::Item)
type Item = (<A as Decode>::Item, <B as Decode>::Item, <C as Decode>::Item, <D as Decode>::Item, <E as Decode>::Item, <F as Decode>::Item, <G as Decode>::Item, <H as Decode>::Item)
The type of items to be decoded.
Source§fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
fn decode(&mut self, buf: &[u8], eos: Eos) -> Result<usize>
Consumes the given buffer (a part of a byte sequence), and proceeds the decoding process. Read more
Source§fn finish_decoding(&mut self) -> Result<Self::Item>
fn finish_decoding(&mut self) -> Result<Self::Item>
Finishes the current decoding process and returns the decoded item. Read more
Source§fn is_idle(&self) -> bool
fn is_idle(&self) -> bool
Returns
true
if there are no items to be decoded by the decoder
at the next invocation of decode
method, otherwise false
. Read moreSource§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the lower bound of the number of bytes needed to decode the next item. Read more
Source§impl Encode for Fields<()>
impl Encode for Fields<()>
Source§fn encode(&mut self, _buf: &mut [u8], _eos: Eos) -> Result<usize>
fn encode(&mut self, _buf: &mut [u8], _eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, _item: Self::Item) -> Result<()>
fn start_encoding(&mut self, _item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl<A> Encode for Fields<(A,)>where
A: FieldEncode,
impl<A> Encode for Fields<(A,)>where
A: FieldEncode,
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl<A, B> Encode for Fields<(A, B)>where
A: FieldEncode,
B: FieldEncode,
impl<A, B> Encode for Fields<(A, B)>where
A: FieldEncode,
B: FieldEncode,
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl<A, B, C> Encode for Fields<(A, B, C)>
impl<A, B, C> Encode for Fields<(A, B, C)>
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl<A, B, C, D> Encode for Fields<(A, B, C, D)>
impl<A, B, C, D> Encode for Fields<(A, B, C, D)>
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl<A, B, C, D, E> Encode for Fields<(A, B, C, D, E)>
impl<A, B, C, D, E> Encode for Fields<(A, B, C, D, E)>
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§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,
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,
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§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,
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,
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item, <G as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item, <G as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§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,
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,
Source§type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item, <G as Encode>::Item, <H as Encode>::Item)
type Item = (<A as Encode>::Item, <B as Encode>::Item, <C as Encode>::Item, <D as Encode>::Item, <E as Encode>::Item, <F as Encode>::Item, <G as Encode>::Item, <H as Encode>::Item)
The type of items to be encoded.
Source§fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
fn encode(&mut self, buf: &mut [u8], eos: Eos) -> Result<usize>
Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more
Source§fn start_encoding(&mut self, item: Self::Item) -> Result<()>
fn start_encoding(&mut self, item: Self::Item) -> Result<()>
Tries to start encoding the given item. Read more
Source§fn requiring_bytes(&self) -> ByteCount
fn requiring_bytes(&self) -> ByteCount
Returns the number of bytes required to encode all the items in the encoder. Read more
Source§impl FieldDecode for Fields<()>
impl FieldDecode for Fields<()>
Source§impl<A> FieldDecode for Fields<(A,)>where
A: FieldDecode,
impl<A> FieldDecode for Fields<(A,)>where
A: FieldDecode,
Source§impl<A, B> FieldDecode for Fields<(A, B)>where
A: FieldDecode,
B: FieldDecode,
impl<A, B> FieldDecode for Fields<(A, B)>where
A: FieldDecode,
B: FieldDecode,
Source§impl<A, B, C> FieldDecode for Fields<(A, B, C)>
impl<A, B, C> FieldDecode for Fields<(A, B, C)>
Source§impl<A, B, C, D> FieldDecode for Fields<(A, B, C, D)>
impl<A, B, C, D> FieldDecode for Fields<(A, B, C, D)>
Source§impl<A, B, C, D, E> FieldDecode for Fields<(A, B, C, D, E)>
impl<A, B, C, D, E> FieldDecode for Fields<(A, B, C, D, E)>
Source§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,
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,
Source§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,
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,
Source§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,
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,
Source§impl SizedEncode for Fields<()>
impl SizedEncode for Fields<()>
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§impl<A> SizedEncode for Fields<(A,)>where
A: FieldEncode + SizedEncode,
impl<A> SizedEncode for Fields<(A,)>where
A: FieldEncode + SizedEncode,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§impl<A, B> SizedEncode for Fields<(A, B)>
impl<A, B> SizedEncode for Fields<(A, B)>
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§impl<A, B, C> SizedEncode for Fields<(A, B, C)>
impl<A, B, C> SizedEncode for Fields<(A, B, C)>
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§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,
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,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§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,
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,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§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,
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,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§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,
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,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Source§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,
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,
Source§fn exact_requiring_bytes(&self) -> u64
fn exact_requiring_bytes(&self) -> u64
Returns the exact number of bytes required to encode all the items remaining in the encoder.
impl FieldEncode for Fields<()>
impl<A> FieldEncode for Fields<(A,)>where
A: FieldEncode,
impl<A, B> FieldEncode for Fields<(A, B)>where
A: FieldEncode,
B: FieldEncode,
impl<A, B, C> FieldEncode for Fields<(A, B, C)>
impl<A, B, C, D> FieldEncode for Fields<(A, B, C, D)>
impl<A, B, C, D, E> FieldEncode for Fields<(A, B, C, D, E)>
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,
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,
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,
Auto Trait Implementations§
impl<F> Freeze for Fields<F>where
F: Freeze,
impl<F> RefUnwindSafe for Fields<F>where
F: RefUnwindSafe,
impl<F> Send for Fields<F>where
F: Send,
impl<F> Sync for Fields<F>where
F: Sync,
impl<F> Unpin for Fields<F>where
F: Unpin,
impl<F> UnwindSafe for Fields<F>where
F: UnwindSafe,
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
Source§impl<T> DecodeExt for Twhere
T: Decode,
impl<T> DecodeExt for Twhere
T: Decode,
Source§fn map<T, F>(self, f: F) -> Map<Self, T, F>
fn map<T, F>(self, f: F) -> Map<Self, T, F>
Creates a decoder that converts decoded values by calling the given function. Read more
Source§fn try_map<T, E, F>(self, f: F) -> TryMap<Self, T, E, F>
fn try_map<T, E, F>(self, f: F) -> TryMap<Self, T, E, F>
Creates a decoder that tries to convert decoded values by calling the given function. Read more
Source§fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F>
fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F>
Creates a decoder for modifying decoding errors produced by
self
. Read moreSource§fn and_then<D, F>(self, f: F) -> AndThen<Self, D, F>
fn and_then<D, F>(self, f: F) -> AndThen<Self, D, F>
Creates a decoder that enables conditional decoding. Read more
Source§fn collect<T>(self) -> Collect<Self, T>
fn collect<T>(self) -> Collect<Self, T>
Creates a decoder for collecting decoded items. Read more
Source§fn length(self, expected_bytes: u64) -> Length<Self>
fn length(self, expected_bytes: u64) -> Length<Self>
Creates a decoder that consumes the specified number of bytes exactly. Read more
Source§fn omit(self, do_omit: bool) -> Omittable<Self>
fn omit(self, do_omit: bool) -> Omittable<Self>
Creates a decoder that will omit decoding items if
do_omit = true
is specified. Read moreSource§fn max_bytes(self, bytes: u64) -> MaxBytes<Self>
fn max_bytes(self, bytes: u64) -> MaxBytes<Self>
Creates a decoder that will fail if the number of consumed bytes exceeds
bytes
. Read moreSource§fn chain<T>(self, other: T) -> TupleDecoder<(Self, T)>where
T: Decode,
fn chain<T>(self, other: T) -> TupleDecoder<(Self, T)>where
T: Decode,
Takes two decoders and creates a new decoder that decodes both items in sequence. Read more
Source§fn slice(self) -> Slice<Self>
fn slice(self) -> Slice<Self>
Creates a decoder that makes it possible to slice the input byte sequence in arbitrary units. Read more
Source§fn peekable(self) -> Peekable<Self>
fn peekable(self) -> Peekable<Self>
Creates a decoder that enables to peek decoded items before calling
finish_decoding
method. Read moreSource§impl<T> EncodeExt for Twhere
T: Encode,
impl<T> EncodeExt for Twhere
T: Encode,
Source§fn with_item(item: Self::Item) -> Result<Self, Error>where
Self: Default,
fn with_item(item: Self::Item) -> Result<Self, Error>where
Self: Default,
Creates a new encoder instance that has the given initial item. Read more
Source§fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F>
fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F>
Creates an encoder for modifying encoding errors produced by
self
. Read moreSource§fn map_from<T, F>(self, f: F) -> MapFrom<Self, T, F>
fn map_from<T, F>(self, f: F) -> MapFrom<Self, T, F>
Creates an encoder that converts items into ones that
suited to the
self
encoder by calling the given function. Read moreSource§fn try_map_from<T, E, F>(self, f: F) -> TryMapFrom<Self, T, E, F>
fn try_map_from<T, E, F>(self, f: F) -> TryMapFrom<Self, T, E, F>
Creates an encoder that tries to convert items into ones that
suited to the
self
encoder by calling the given function. Read moreSource§fn optional(self) -> Optional<Self>
fn optional(self) -> Optional<Self>
Creates an encoder that represents an optional encoder. Read more
Source§fn max_bytes(self, n: u64) -> MaxBytes<Self>
fn max_bytes(self, n: u64) -> MaxBytes<Self>
Creates an encoder that will fail if the number of encoded bytes of an item exceeds
n
. Read moreSource§fn length(self, n: u64) -> Length<Self>
fn length(self, n: u64) -> Length<Self>
Creates an encoder that required to encode each item exactly at the specified number of bytes. Read more
Source§fn chain<T>(self, other: T) -> TupleEncoder<(Self, T)>where
T: Encode,
fn chain<T>(self, other: T) -> TupleEncoder<(Self, T)>where
T: Encode,
Takes two encoders and creates a new encoder that encodes both items in sequence. Read more
Source§fn repeat<I>(self) -> Repeat<Self, I>
fn repeat<I>(self) -> Repeat<Self, I>
Creates an encoder that repeats encoding of
Self::Item
. Read moreSource§fn pre_encode(self) -> PreEncode<Self>
fn pre_encode(self) -> PreEncode<Self>
Creates an encoder that pre-encodes items when
start_encoding
method is called. Read moreSource§fn slice(self) -> Slice<Self>
fn slice(self) -> Slice<Self>
Creates an encoder that makes it possible to slice the encoded byte sequence in arbitrary units. Read more