[][src]Trait ogma_libs::module::ModuleType

pub trait ModuleType<'a, C> {
    type Error;
    fn compile_line(
        ctx: &mut C,
        string: &'a str
    ) -> Result<Func<'a>, Self::Error>; fn compile(
        ctx: &mut C,
        string: &'a str
    ) -> Result<Script<'a>, (usize, Self::Error)> { ... } }

Types which implement ModuleType can compile a line into a Func and multiple lines into a Script

Associated Types

type Error

Loading content...

Required methods

fn compile_line(ctx: &mut C, string: &'a str) -> Result<Func<'a>, Self::Error>

Loading content...

Provided methods

fn compile(
    ctx: &mut C,
    string: &'a str
) -> Result<Script<'a>, (usize, Self::Error)>

Loading content...

Implementors

impl<'a, C> ModuleType<'a, C> for Nil[src]

type Error = MatchError

impl<'a, H, T, C> ModuleType<'a, C> for Cons<H, T> where
    H: 'a + Match<'a, C> + Callable,
    T: ModuleType<'a, C, Error = MatchError>,
    <T as ModuleType<'a, C>>::Error: Into<MatchError>, 
[src]

type Error = MatchError

Loading content...