pub trait SmlDeserialize: Sized {
// Required method
fn from_sml_value(v: &Value) -> Result<Self, String>;
// Provided method
fn from_sml(text: &str) -> Result<Self, String> { ... }
}Expand description
从 SML 值反序列化(#[derive(SmlDeserialize)] 自动实现)。
Required Methods§
fn from_sml_value(v: &Value) -> Result<Self, String>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".