pub trait SilPrimitive: Sized + Clone {
// Required methods
fn to_sil_string(&self) -> String;
fn from_sil_string(s: &str) -> Result<Self, &'static str>;
}Required Methods§
fn to_sil_string(&self) -> String
fn from_sil_string(s: &str) -> Result<Self, &'static str>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".