Skip to main content

pack_bytes

Function pack_bytes 

Source
pub fn pack_bytes<T: TuplePack>(value: &T) -> Bytes
Expand description

Encodes tuple values into a Bytes key buffer.

This avoids forcing downstream call sites to keep converting from Vec<u8> when the surrounding key pipeline is already Bytes-oriented.