pub fn serialize_val<T>(val: T) -> Result<ValBuf>where
T: Serialize,Expand description
Serializes a database value into an inline-backed value buffer.
The compact database record codec determines the byte representation. The
buffer spills to the heap if the encoded value exceeds VAL_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.