pub trait WildDocScript {
    // Required methods
    fn new(state: Arc<WildDocState>) -> Result<Self>
       where Self: Sized;
    fn evaluate_module<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        file_name: &'life1 str,
        src: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn eval<'life0, 'life1, 'async_trait>(
        &'life0 self,
        code: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<WildDocValue>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn new(state: Arc<WildDocState>) -> Result<Self>
where Self: Sized,

source

fn evaluate_module<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, file_name: &'life1 str, src: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn eval<'life0, 'life1, 'async_trait>( &'life0 self, code: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<WildDocValue>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§