[][src]Trait ogma_libs::module::Module

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

Types which implement Module can compile a line into a Func and multiple lines into a Script through instance methods

Associated Types

type Error

Loading content...

Required methods

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

Loading content...

Provided methods

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

Loading content...

Implementors

impl<'a, C, T> Module<'a, C> for T where
    T: AsRef<[FuncMatcher<'a, C>]>, 
[src]

type Error = MatchError

Loading content...