FromSexp

Trait FromSexp 

Source
pub trait FromSexp<T: Types> {
    // Required methods
    fn var(&self, name: &str) -> Result<T::Var, ParseError>;
    fn kvar(&self, name: &str) -> Result<T::KVar, ParseError>;
    fn string(&self, s: &str) -> Result<T::String, ParseError>;
    fn sort(&self, name: &str) -> Result<T::Sort, ParseError>;

    // Provided method
    fn into_wrapper(self) -> FromSexpWrapper<T, Self>
       where Self: Sized { ... }
}

Required Methods§

Source

fn var(&self, name: &str) -> Result<T::Var, ParseError>

Source

fn kvar(&self, name: &str) -> Result<T::KVar, ParseError>

Source

fn string(&self, s: &str) -> Result<T::String, ParseError>

Source

fn sort(&self, name: &str) -> Result<T::Sort, ParseError>

Provided Methods§

Source

fn into_wrapper(self) -> FromSexpWrapper<T, Self>
where Self: Sized,

Implementors§