Trait StringOrFunction

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

A trait implemented by closures, Functions and strings.

Required Methods§

Implementations on Foreign Types§

Source§

impl<A, R> StringOrFunction<A, R> for &str

Source§

impl<A, R> StringOrFunction<A, R> for String

Source§

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

Implementors§

Source§

impl<F, A, R, O> StringOrFunction<A, R> for F
where F: FnMut(A) -> O + 'static, A: Poppable, R: Pushable, O: IntoResult<R>, O::Error: StdError + 'static,