Expand description
A trait that enables a type to convert itself to a big-endian/network byte order.
The error type that can be produced by either serialization or
deserialization.
The size of the key, if constant.
Convert self
into a Cow<[u8]>
containing bytes ordered in big-endian/network byte order.
Convert a slice of bytes into Self
by interpretting bytes
in big-endian/network byte order.
impl<'a, T1, T2, T3, T4> Key<'a> for (T1, T2, T3, T4) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
Panics if T::into_big_endian_bytes
returns an empty IVec
.
impl<'a, T1, T2> Key<'a> for (T1, T2) where
T1: Key<'a>,
T2: Key<'a>,
impl<'a, T1, T2, T3, T4, T5, T6, T7, T8> Key<'a> for (T1, T2, T3, T4, T5, T6, T7, T8) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
T5: Key<'a>,
T6: Key<'a>,
T7: Key<'a>,
T8: Key<'a>,
impl<'a, T1, T2, T3> Key<'a> for (T1, T2, T3) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
impl<'a, T1, T2, T3, T4, T5, T6> Key<'a> for (T1, T2, T3, T4, T5, T6) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
T5: Key<'a>,
T6: Key<'a>,
impl<'a, T1, T2, T3, T4, T5, T6, T7> Key<'a> for (T1, T2, T3, T4, T5, T6, T7) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
T5: Key<'a>,
T6: Key<'a>,
T7: Key<'a>,
impl<'a, T1, T2, T3, T4, T5> Key<'a> for (T1, T2, T3, T4, T5) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
T5: Key<'a>,