teo-generator 0.3.9

SDK generators for Teo
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use teo_parser::r#type::Type;
use teo_result::Result;

pub(crate) trait Lookup {
    fn call(&self, t: &Type) -> Result<String>;
}

impl<F> Lookup for F where F: Fn(&Type) -> Result<String> {

    fn call(&self, t: &Type) -> Result<String> {
        self(t)
    }
}