pub fn serialize_key<T>(val: T) -> Result<KeyBuf>where
T: Serialize,Expand description
Serializes a database key into an inline-backed key buffer.
The compact database record codec determines the byte representation. The
buffer spills to the heap if the encoded key exceeds KEY_STACK_CAP.
ยงPanics
Panics if T requests a Serde data-model operation unsupported by the
database codec. Debug builds also panic when record-layout invariants are
violated or when a directly wrapped
Json<Box<serde_json::value::RawValue>> is serialized.