Skip to main content

FromGram

Trait FromGram 

Source
pub trait FromGram: Sized {
    // Required method
    fn from_gram(input: &str) -> Result<Self, ParseError>;
}
Expand description

Extension trait for constructing types from gram notation.

Required Methods§

Source

fn from_gram(input: &str) -> Result<Self, ParseError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromGram for StandardGraph

Source§

fn from_gram(input: &str) -> Result<Self, ParseError>

Implementors§