Skip to main content

Calls

Trait Calls 

Source
pub trait Calls: Send + Sync {
    // Required method
    fn call<'a>(
        &'a self,
        sig: &'a QualifiedName,
        args: Vec<Value>,
    ) -> BoxFuture<'a, Result<Value, ExecError>>;
}
Expand description

How a body reaches other signatures.

The interpreter does not choose implementations; it asks. That keeps policy in one place and means a body written once benefits from a faster proof appearing later.

Required Methods§

Source

fn call<'a>( &'a self, sig: &'a QualifiedName, args: Vec<Value>, ) -> BoxFuture<'a, Result<Value, ExecError>>

Invokes a signature and returns what it produced.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§