Trait pliantdb_core::schema::view::map::Key [−][src]
pub trait Key: Clone + Send + Sync { fn as_big_endian_bytes(&self) -> Result<Cow<'_, [u8]>>; fn from_big_endian_bytes(bytes: &[u8]) -> Result<Self>; }
Expand description
A trait that enables a type to convert itself to a big-endian/network byte order.
Required methods
Convert self into a Cow<[u8]> containing bytes ordered in big-endian/network byte order.