pub(crate) fn type_to_ocaml_call(ctx: &GenerateCtx<'_>, ty: &Ty) -> String
Expand description
Converts a type to the appropriate *_of_json
call. In case of generics, this combines several
functions, e.g. list_of_json bool_of_json
.
pub(crate) fn type_to_ocaml_call(ctx: &GenerateCtx<'_>, ty: &Ty) -> String
Converts a type to the appropriate *_of_json
call. In case of generics, this combines several
functions, e.g. list_of_json bool_of_json
.