pub trait Export {
    // Required methods
    fn name(&self) -> &str;
    fn inputs_cardinality(&self) -> usize;
    fn outputs_cardinality(&self) -> usize;
    fn arguments(&self) -> &[FunctionArg];
    fn outputs(&self) -> &[IType];
    fn call(&self, arguments: &[IValue]) -> Result<Vec<IValue>, ()>;
}

Required Methods§

source

fn name(&self) -> &str

source

fn inputs_cardinality(&self) -> usize

source

fn outputs_cardinality(&self) -> usize

source

fn arguments(&self) -> &[FunctionArg]

source

fn outputs(&self) -> &[IType]

source

fn call(&self, arguments: &[IValue]) -> Result<Vec<IValue>, ()>

Implementations on Foreign Types§

source§

impl Export for ()

source§

fn name(&self) -> &str

source§

fn inputs_cardinality(&self) -> usize

source§

fn outputs_cardinality(&self) -> usize

source§

fn arguments(&self) -> &[FunctionArg]

source§

fn outputs(&self) -> &[IType]

source§

fn call(&self, _arguments: &[IValue]) -> Result<Vec<IValue>, ()>

Implementors§