MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / bitcode_serialize

Function bitcode_serialize

src/benches.rs:124–126  ·  view source on GitHub ↗
(v: &(impl Serialize + ?Sized))

Source from the content-addressed store, hash-verified

122
123#[cfg(feature = "serde")]
124fn bitcode_serialize(v: &(impl Serialize + ?Sized)) -> Vec<u8> {
125 crate::serialize(v).unwrap()
126}
127#[cfg(feature = "serde")]
128fn bitcode_deserialize<T: DeserializeOwned>(v: &[u8]) -> T {
129 crate::deserialize(v).unwrap()

Callers

nothing calls this directly

Calls 1

serializeFunction · 0.85

Tested by

no test coverage detected