Struct bytecodec::tuple::Tuple5Decoder [] [src]

pub struct Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Decode,
    D1: Decode,
    D2: Decode,
    D3: Decode,
    D4: Decode
{ /* fields omitted */ }

Decoder for 5-elements tuples.

Methods

impl<D0, D1, D2, D3, D4> Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Decode,
    D1: Decode,
    D2: Decode,
    D3: Decode,
    D4: Decode
[src]

[src]

Makes a new Tuple5Decoder instance.

[src]

Returns references to the inner decoders.

[src]

Returns mutable references to the inner decoders.

Trait Implementations

impl<D0: Debug, D1: Debug, D2: Debug, D3: Debug, D4: Debug> Debug for Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Decode,
    D1: Decode,
    D2: Decode,
    D3: Decode,
    D4: Decode
[src]

[src]

Formats the value using the given formatter. Read more

impl<D0: Default, D1: Default, D2: Default, D3: Default, D4: Default> Default for Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Decode,
    D1: Decode,
    D2: Decode,
    D3: Decode,
    D4: Decode
[src]

[src]

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

impl<D0, D1, D2, D3, D4> Decode for Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Decode,
    D1: Decode,
    D2: Decode,
    D3: Decode,
    D4: Decode
[src]

The type of items to be decoded.

[src]

Consumes the given buffer (a part of a byte sequence), and decodes an item from it. Read more

[src]

Returns the lower bound of the number of bytes needed to decode the next item. Read more

Auto Trait Implementations

impl<D0, D1, D2, D3, D4> Send for Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Send,
    D1: Send,
    D2: Send,
    D3: Send,
    D4: Send,
    <D0 as Decode>::Item: Send,
    <D1 as Decode>::Item: Send,
    <D2 as Decode>::Item: Send,
    <D3 as Decode>::Item: Send

impl<D0, D1, D2, D3, D4> Sync for Tuple5Decoder<D0, D1, D2, D3, D4> where
    D0: Sync,
    D1: Sync,
    D2: Sync,
    D3: Sync,
    D4: Sync,
    <D0 as Decode>::Item: Sync,
    <D1 as Decode>::Item: Sync,
    <D2 as Decode>::Item: Sync,
    <D3 as Decode>::Item: Sync