Trait WildDocScript

Source
pub trait WildDocScript<I: IncludeAdaptor + Send> {
    // Required methods
    fn new(
        include_adaptor: Arc<Mutex<I>>,
        cache_dir: PathBuf,
        stack: &Stack,
    ) -> Result<Self>
       where Self: Sized;
    fn evaluate_module<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        file_name: &'life1 str,
        src: &'life2 str,
        stack: &'life3 Stack,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn eval<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        code: &'life1 str,
        stack: &'life2 Stack,
    ) -> Pin<Box<dyn Future<Output = Result<WildDocValue>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn new( include_adaptor: Arc<Mutex<I>>, cache_dir: PathBuf, stack: &Stack, ) -> Result<Self>
where Self: Sized,

Source

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

Source

fn eval<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, code: &'life1 str, stack: &'life2 Stack, ) -> Pin<Box<dyn Future<Output = Result<WildDocValue>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§