MCPcopy Create free account
hub / github.com/apache/fory / fory_write_data_generic

Method fory_write_data_generic

rust/fory-core/src/serializer/rc.rs:72–83  ·  view source on GitHub ↗
(
        &self,
        context: &mut WriteContext,
        has_generics: bool,
    )

Source from the content-addressed store, hash-verified

70 }
71
72 fn fory_write_data_generic(
73 &self,
74 context: &mut WriteContext,
75 has_generics: bool,
76 ) -> Result<(), Error> {
77 if T::fory_is_shared_ref() {
78 return Err(Error::not_allowed(
79 "Rc<T> where T is a shared ref type is not allowed for serialization.",
80 ));
81 }
82 T::fory_write_data_generic(&**self, context, has_generics)
83 }
84
85 fn fory_write_data(&self, context: &mut WriteContext) -> Result<(), Error> {
86 self.fory_write_data_generic(context, false)

Callers 3

write_collection_dataFunction · 0.45
fory_write_dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected