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

Function bitcode_encode

src/benches.rs:115–117  ·  view source on GitHub ↗
(v: &(impl crate::Encode + ?Sized))

Source from the content-addressed store, hash-verified

113
114#[cfg(feature = "derive")]
115fn bitcode_encode(v: &(impl crate::Encode + ?Sized)) -> Vec<u8> {
116 crate::encode(v)
117}
118#[cfg(feature = "derive")]
119fn bitcode_decode<T: crate::DecodeOwned>(v: &[u8]) -> T {
120 crate::decode(v).unwrap()

Callers

nothing calls this directly

Calls 1

encodeFunction · 0.85

Tested by

no test coverage detected