Skip to main content

MethodBody

Type Alias MethodBody 

Source
pub type MethodBody = Arc<dyn Fn(&mut Cx, &[Value]) -> Result<Value> + Send + Sync>;
Expand description

The executable body of a DispatchMethod.

A shared closure invoked with the call Cx and the matched arguments, returning the method’s result Value.

Aliased Type§

pub struct MethodBody { /* private fields */ }