Skip to main content

DefaultFn

Trait DefaultFn 

Source
pub trait DefaultFn<A, I, T>: Send + 'static {
    // Required method
    fn execute(&self, scope: &Scope<I>) -> Result<Option<T>>;
}
Expand description

Default function.

Required Methods§

Source

fn execute(&self, scope: &Scope<I>) -> Result<Option<T>>

Executes the map function.

§Errors

This method returns an error if the function fails to execute.

Implementors§

Source§

impl<F, I, T> DefaultFn<ForId, I, T> for F
where F: Fn(&I) -> Result<Option<T>> + Send + 'static, I: Display,

Source§

impl<F, I, T> DefaultFn<ForScope, I, T> for F
where F: Fn(&Scope<I>) -> Result<Option<T>> + Send + 'static, I: Display,

Source§

impl<F, I, T> DefaultFn<ForValue, I, T> for F
where F: Fn() -> Result<Option<T>> + Send + 'static, I: Display,