(context: &mut ReadContext)
| 122 | } |
| 123 | |
| 124 | fn fory_read_data(context: &mut ReadContext) -> Result<Self, Error> |
| 125 | where |
| 126 | Self: Sized + ForyDefault, |
| 127 | { |
| 128 | Ok(Self { |
| 129 | value: context.reader.read_i32()?, |
| 130 | }) |
| 131 | } |
| 132 | |
| 133 | fn fory_type_id_dyn(&self, type_resolver: &TypeResolver) -> Result<TypeId, Error> { |
| 134 | Self::fory_get_type_id(type_resolver) |