Expand description
A trait that enables a type to convert itself into a memcmp-compatible
sequence of bytes.
The error type that can be produced by either serialization or
deserialization.
The size of the key, if constant. If this type doesn’t produce the same
number of bytes for each value, this should be None.
Convert self into a Cow<[u8]> containing bytes that are able to be
compared via memcmp in a way that is comptaible with its own Ord
implementation.
sourceimpl<'a, T1, T2, T3> KeyEncoding<'a, (T1, T2, T3)> for (T1, T2, T3) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
sourceimpl<'a, T1, T2, T3, T4> KeyEncoding<'a, (T1, T2, T3, T4)> for (T1, T2, T3, T4) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
sourceimpl<'a, T1, T2, T3, T4, T5> KeyEncoding<'a, (T1, T2, T3, T4, T5)> for (T1, T2, T3, T4, T5) where
T1: Key<'a>,
T2: Key<'a>,
T3: Key<'a>,
T4: Key<'a>,
T5: Key<'a>,
sourceimpl<'a, T1, T2, T3, T4, T5, T6> KeyEncoding<'a, (T1, T2, T3, T4, T5, T6)> 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>,
sourceimpl<'a, T1, T2, T3, T4, T5, T6, T7> KeyEncoding<'a, (T1, T2, T3, T4, T5, T6, T7)> 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>,
sourceimpl<'a, T1, T2, T3, T4, T5, T6, T7, T8> KeyEncoding<'a, (T1, T2, T3, T4, T5, T6, T7, T8)> 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>,
Panics if T::into_big_endian_bytes returns an empty IVec.