Trait Library

Source
pub trait Library: Sync + Send {
    // Required methods
    fn scope(&self) -> String;
    fn call(
        &self,
        pid: &str,
        doc: &mut SDoc,
        name: &str,
        parameters: &mut Vec<SVal>,
    ) -> Result<SVal, SError>;
}
Expand description

Stof library.

Required Methods§

Source

fn scope(&self) -> String

Library name/scope.

Source

fn call( &self, pid: &str, doc: &mut SDoc, name: &str, parameters: &mut Vec<SVal>, ) -> Result<SVal, SError>

Call a library function with a set of parameters.

Implementors§