[][src]Trait kes::builtin::Builtin

pub trait Builtin: Send {
#[must_use]    pub fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 mut self,
        name: &'life1 str,
        ctx: &'life2 mut Context<'life3>
    ) -> Pin<Box<dyn Future<Output = Value> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
;
pub fn print(&mut self, v: Value);
pub fn new_line(&mut self);
#[must_use] pub fn wait<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; pub fn load(&mut self, name: &str) -> Option<Value> { ... } }

Script Builtin trait you can provide your system methods for script

Required methods

#[must_use]pub fn run<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 mut self,
    name: &'life1 str,
    ctx: &'life2 mut Context<'life3>
) -> Pin<Box<dyn Future<Output = Value> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

pub fn print(&mut self, v: Value)[src]

pub fn new_line(&mut self)[src]

#[must_use]pub fn wait<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Provided methods

pub fn load(&mut self, name: &str) -> Option<Value>[src]

Loading content...

Implementations on Foreign Types

impl<'a, B: Builtin> Builtin for &'a mut B[src]

Loading content...

Implementors

impl Builtin for RecordBuiltin[src]

Loading content...