pub fn to_bytes<T, C: CacheableContext>(value: &T, ctx: &C) -> Result<Vec<u8>>where
T: for<'a> Serialize<Serializer<'a>>,Expand description
Transform struct to bytes
This function implementation refers to rkyv::to_bytes and add custom error and context support