pub trait OCamlString {
// Required methods
fn to_ocaml_str(&self) -> String;
fn from_ocaml_str(s: &str) -> Self;
}
Expand description
Convert to/from OCaml strings, such as “u~\218kzX\228$\027qG\239\135\255:\143\171\186\011\200P\243\163\135\223T>\017\172\254\1906”
Required Methods§
fn to_ocaml_str(&self) -> String
fn from_ocaml_str(s: &str) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.