You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at different values for constructing my interface between Ocaml and Rust. Is there a way to easily translate an Ocaml map to Rust? Maybe I'm wrong but I think the standard Ocaml Map is used often enough to warrant an interface struct like https://docs.rs/ocaml/latest/ocaml/struct.List.html to help with the conversion.
Otherwise I guess I will be converting to an associated list which isn't bad, but unsatisfying compared to having an ocaml::Map which could be converted to HashMap and back.
The text was updated successfully, but these errors were encountered:
Thay could be a nice addition - I am not familiar with how Map is implemented, but if it could be implemented on the Rust side without any callbacks into stdlib then I think it would be a good candidate!
I was looking at different values for constructing my interface between Ocaml and Rust. Is there a way to easily translate an Ocaml map to Rust? Maybe I'm wrong but I think the standard Ocaml Map is used often enough to warrant an interface struct like https://docs.rs/ocaml/latest/ocaml/struct.List.html to help with the conversion.
Otherwise I guess I will be converting to an associated list which isn't bad, but unsatisfying compared to having an
ocaml::Map
which could be converted toHashMap
and back.The text was updated successfully, but these errors were encountered: