Skip to main content

Parsable

Trait Parsable 

Source
pub trait Parsable {
    // Required method
    fn parse(symbol: &str) -> Res<Self>
       where Self: Sized;
}
Expand description

A trait for types that can be parsed from a string.

Required Methods§

Source

fn parse(symbol: &str) -> Res<Self>
where Self: Sized,

Parses the type from a string.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§