MCPcopy Create free account
hub / github.com/elastic/devfiler / serialize_with

Method serialize_with

src/storage/dbtypes.rs:55–58  ·  view source on GitHub ↗
(field: &FileId, serializer: &mut S)

Source from the content-addressed store, hash-verified

53 u128: rkyv::Serialize<S>,
54{
55 fn serialize_with(field: &FileId, serializer: &mut S) -> Result<Self::Resolver, S::Error> {
56 use rkyv::Serialize as _;
57 u128::from(*field).serialize(serializer)
58 }
59}
60
61impl<D: rkyv::Fallible + ?Sized> rkyv::with::DeserializeWith<rkyv::Archived<u128>, FileId, D>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected