(&self)
| 49 | impl<'a> ResolvedField<'a> { |
| 50 | #[inline] |
| 51 | pub fn codec_call(&self) -> TokenStream { |
| 52 | match &self.dispatch { |
| 53 | FieldDispatch::Codec { codec_ty } => { |
| 54 | let value_ty = self.value_ty; |
| 55 | quote! { <#codec_ty as fory_core::serializer::codec::Codec<#value_ty>> } |
| 56 | } |
| 57 | FieldDispatch::Serializer { .. } => { |
| 58 | quote! { compile_error!("serializer-dispatched field has no codec call") } |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | pub fn reserved_space(&self) -> TokenStream { |
| 64 | match &self.dispatch { |
no outgoing calls
no test coverage detected