(
&self,
context: &mut WriteContext,
has_generics: bool,
)
| 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) |
no outgoing calls
no test coverage detected