Skip to main content

AsStringConverter

Trait AsStringConverter 

Source
pub trait AsStringConverter {
    // Required methods
    fn to_string(&self) -> Result<String>;
    fn from_str(s: &str) -> Result<Self>
       where Self: Sized;
}

Required Methods§

Source

fn to_string(&self) -> Result<String>

Source

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".

Implementors§