Struct bytecodec::tuple::Tuple7Encoder
[−]
[src]
pub struct Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> { /* fields omitted */ }
Encoder for 7-elements tuples.
Methods
impl<E0, E1, E2, E3, E4, E5, E6> Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: Encode,
E1: Encode,
E2: Encode,
E3: Encode,
E4: Encode,
E5: Encode,
E6: Encode,
[src]
E0: Encode,
E1: Encode,
E2: Encode,
E3: Encode,
E4: Encode,
E5: Encode,
E6: Encode,
pub fn new(e0: E0, e1: E1, e2: E2, e3: E3, e4: E4, e5: E5, e6: E6) -> Self
[src]
Makes a new Tuple7Encoder
instance.
pub fn inner_ref(&self) -> (&E0, &E1, &E2, &E3, &E4, &E5, &E6)
[src]
Returns references to the inner decoders.
pub fn inner_mut(
&mut self
) -> (&mut E0, &mut E1, &mut E2, &mut E3, &mut E4, &mut E5, &mut E6)
[src]
&mut self
) -> (&mut E0, &mut E1, &mut E2, &mut E3, &mut E4, &mut E5, &mut E6)
Returns mutable references to the inner decoders.
Trait Implementations
impl<E0: Debug, E1: Debug, E2: Debug, E3: Debug, E4: Debug, E5: Debug, E6: Debug> Debug for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E0: Default, E1: Default, E2: Default, E3: Default, E4: Default, E5: Default, E6: Default> Default for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6>
[src]
fn default() -> Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6>
[src]
Returns the "default value" for a type. Read more
impl<E0, E1, E2, E3, E4, E5, E6> Encode for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: Encode,
E1: Encode,
E2: Encode,
E3: Encode,
E4: Encode,
E5: Encode,
E6: Encode,
[src]
E0: Encode,
E1: Encode,
E2: Encode,
E3: Encode,
E4: Encode,
E5: Encode,
E6: Encode,
type Item = (E0::Item, E1::Item, E2::Item, E3::Item, E4::Item, E5::Item, E6::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, t: Self::Item) -> Result<()>
[src]
Tries to start encoding the given item. Read more
fn requiring_bytes(&self) -> ByteCount
[src]
Returns the number of bytes required to encode all the items in the encoder. Read more
fn is_idle(&self) -> bool
[src]
Returns true
if there are no items to be encoded in the encoder, otherwise false
.
impl<E0, E1, E2, E3, E4, E5, E6> ExactBytesEncode for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,
E5: ExactBytesEncode,
E6: ExactBytesEncode,
[src]
E0: ExactBytesEncode,
E1: ExactBytesEncode,
E2: ExactBytesEncode,
E3: ExactBytesEncode,
E4: ExactBytesEncode,
E5: ExactBytesEncode,
E6: ExactBytesEncode,
fn exact_requiring_bytes(&self) -> u64
[src]
Returns the exact number of bytes required to encode all the items remaining in the encoder.
Auto Trait Implementations
impl<E0, E1, E2, E3, E4, E5, E6> Send for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: Send,
E1: Send,
E2: Send,
E3: Send,
E4: Send,
E5: Send,
E6: Send,
E0: Send,
E1: Send,
E2: Send,
E3: Send,
E4: Send,
E5: Send,
E6: Send,
impl<E0, E1, E2, E3, E4, E5, E6> Sync for Tuple7Encoder<E0, E1, E2, E3, E4, E5, E6> where
E0: Sync,
E1: Sync,
E2: Sync,
E3: Sync,
E4: Sync,
E5: Sync,
E6: Sync,
E0: Sync,
E1: Sync,
E2: Sync,
E3: Sync,
E4: Sync,
E5: Sync,
E6: Sync,