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

Method fory_write_data_generic

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

Source from the content-addressed store, hash-verified

217
218 #[inline(always)]
219 fn fory_write_data_generic(
220 &self,
221 context: &mut WriteContext,
222 has_generics: bool,
223 ) -> Result<(), Error> {
224 if is_primitive_type::<T>() {
225 primitive_list::fory_write_data(self.as_slice(), context)
226 } else {
227 write_collection_data(self.iter(), context, has_generics)
228 }
229 }
230
231 #[inline(always)]
232 fn fory_write_type_info(context: &mut WriteContext) -> Result<(), Error> {

Callers

nothing calls this directly

Calls 2

fory_write_dataFunction · 0.85
write_collection_dataFunction · 0.85

Tested by

no test coverage detected