pub trait AsStringConverter {
// Required methods
fn to_string(&self) -> Result<String>;
fn from_str(s: &str) -> Result<Self>
where Self: Sized;
}Required Methods§
fn to_string(&self) -> Result<String>
fn from_str(s: &str) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".