Struct bytecodec::tuple::TupleEncoder[][src]

pub struct TupleEncoder<E> { /* fields omitted */ }

Encoder for tuples.

Methods

impl<E> TupleEncoder<E>
[src]

Makes a new TupleEncoder.

Important traits for &'a mut R

Returns a reference to the inner encoders.

Important traits for &'a mut R

Returns a mutable reference to the inner encoders.

Takes ownership of this instance and returns the inner encoders.

Trait Implementations

impl<E: Debug> Debug for TupleEncoder<E>
[src]

Formats the value using the given formatter. Read more

impl<E: Default> Default for TupleEncoder<E>
[src]

Returns the "default value" for a type. Read more

impl<E0, E1> Encode for TupleEncoder<(E0, E1)> where
    E0: Encode,
    E1: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1> SizedEncode for TupleEncoder<(E0, E1)> where
    E0: SizedEncode,
    E1: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2> Encode for TupleEncoder<(E0, E1, E2)> where
    E0: Encode,
    E1: Encode,
    E2: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2> SizedEncode for TupleEncoder<(E0, E1, E2)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2, E3> Encode for TupleEncoder<(E0, E1, E2, E3)> where
    E0: Encode,
    E1: Encode,
    E2: Encode,
    E3: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2, E3> SizedEncode for TupleEncoder<(E0, E1, E2, E3)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode,
    E3: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2, E3, E4> Encode for TupleEncoder<(E0, E1, E2, E3, E4)> where
    E0: Encode,
    E1: Encode,
    E2: Encode,
    E3: Encode,
    E4: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2, E3, E4> SizedEncode for TupleEncoder<(E0, E1, E2, E3, E4)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode,
    E3: SizedEncode,
    E4: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2, E3, E4, E5> Encode for TupleEncoder<(E0, E1, E2, E3, E4, E5)> where
    E0: Encode,
    E1: Encode,
    E2: Encode,
    E3: Encode,
    E4: Encode,
    E5: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2, E3, E4, E5> SizedEncode for TupleEncoder<(E0, E1, E2, E3, E4, E5)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode,
    E3: SizedEncode,
    E4: SizedEncode,
    E5: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2, E3, E4, E5, E6> Encode for TupleEncoder<(E0, E1, E2, E3, E4, E5, E6)> where
    E0: Encode,
    E1: Encode,
    E2: Encode,
    E3: Encode,
    E4: Encode,
    E5: Encode,
    E6: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2, E3, E4, E5, E6> SizedEncode for TupleEncoder<(E0, E1, E2, E3, E4, E5, E6)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode,
    E3: SizedEncode,
    E4: SizedEncode,
    E5: SizedEncode,
    E6: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

impl<E0, E1, E2, E3, E4, E5, E6, E7> Encode for TupleEncoder<(E0, E1, E2, E3, E4, E5, E6, E7)> where
    E0: Encode,
    E1: Encode,
    E2: Encode,
    E3: Encode,
    E4: Encode,
    E5: Encode,
    E6: Encode,
    E7: Encode
[src]

The type of items to be encoded.

Encodes the items in the encoder and writes the encoded bytes to the given buffer. Read more

Tries to start encoding the given item. Read more

Returns the number of bytes required to encode all the items in the encoder. Read more

Returns true if there are no items to be encoded in the encoder, otherwise false. Read more

impl<E0, E1, E2, E3, E4, E5, E6, E7> SizedEncode for TupleEncoder<(E0, E1, E2, E3, E4, E5, E6, E7)> where
    E0: SizedEncode,
    E1: SizedEncode,
    E2: SizedEncode,
    E3: SizedEncode,
    E4: SizedEncode,
    E5: SizedEncode,
    E6: SizedEncode,
    E7: SizedEncode
[src]

Returns the exact number of bytes required to encode all the items remaining in the encoder.

Auto Trait Implementations

impl<E> Send for TupleEncoder<E> where
    E: Send

impl<E> Sync for TupleEncoder<E> where
    E: Sync