Skip to main content

Callable

Trait Callable 

Source
pub trait Callable {
    // Required method
    fn call(&self, caller: &mut dyn CallBridge) -> Result<Value, CallError>;
}
Expand description

Anything that can be invoked through a CallBridge, e.g. a behavior-tree tick registered as an indirect callable.

Required Methods§

Source

fn call(&self, caller: &mut dyn CallBridge) -> Result<Value, CallError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§