Trait ToFunction

Source
pub trait ToFunction<A, R> {
    // Required method
    fn to_object(self) -> Object;
}
Expand description

A Rust closure or a Function.

Required Methods§

Implementations on Foreign Types§

Source§

impl<A, R> ToFunction<A, R> for Function<A, R>

Implementors§

Source§

impl<A, R, F> ToFunction<A, R> for F
where A: Poppable, R: Pushable, F: FnMut(A) -> Result<R, Error> + 'static,