pub fn encode(value: &Value) -> Vec<u8> ⓘExpand description
encode a given Value into its binary representation.
this function insert a header of empty decl_path to implicitly specify any type.
§Value variants encodings
Bool:bool.Int:vint.Uint:vuint.Float:f64.BigInt:bint.Str:str.Inst:instN.Dur:dur.uuid:uuid.Arr:arr<T>whereTis a specific type if all items have same type, elseTisany.Map:map<K, V>whereKandVare specific types if all keys / values have same type, elseK/Vareany.