pub(crate) fn type_to_ocaml_call(ctx: &GenerateCtx<'_>, ty: &Ty) -> StringExpand 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) -> StringConverts a type to the appropriate *_of_json call. In case of generics, this combines several
functions, e.g. list_of_json bool_of_json.