Skip to main content

GetFn

Trait GetFn 

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

Get function.

Required Methods§

Source

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

Executes the get function.

§Errors

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

Implementors§

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> GetFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> GetFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, T8, U> GetFn<ForSplat, I, (T1, T2, T3, T4, T5, T6, T7, T8), U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7, &T8) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> GetFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6, &T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> GetFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3, &T4, &T5, &T6, &T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, T7, U> GetFn<ForSplat, I, (T1, T2, T3, T4, T5, T6, T7), U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6, &T7) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> GetFn<ForIdSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5, &T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> GetFn<ForScopeSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3, &T4, &T5, &T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, T6, U> GetFn<ForSplat, I, (T1, T2, T3, T4, T5, T6), U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5, &T6) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> GetFn<ForIdSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&I, &T1, &T2, &T3, &T4, &T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> GetFn<ForScopeSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3, &T4, &T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, T5, U> GetFn<ForSplat, I, (T1, T2, T3, T4, T5), U> for F
where F: Fn(&T1, &T2, &T3, &T4, &T5) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> GetFn<ForIdSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&I, &T1, &T2, &T3, &T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> GetFn<ForScopeSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3, &T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, T4, U> GetFn<ForSplat, I, (T1, T2, T3, T4), U> for F
where F: Fn(&T1, &T2, &T3, &T4) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> GetFn<ForIdSplat, I, (T1, T2, T3), U> for F
where F: Fn(&I, &T1, &T2, &T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> GetFn<ForScopeSplat, I, (T1, T2, T3), U> for F
where F: Fn(&Scope<I>, &T1, &T2, &T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, T3, U> GetFn<ForSplat, I, (T1, T2, T3), U> for F
where F: Fn(&T1, &T2, &T3) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> GetFn<ForIdSplat, I, (T1, T2), U> for F
where F: Fn(&I, &T1, &T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> GetFn<ForScopeSplat, I, (T1, T2), U> for F
where F: Fn(&Scope<I>, &T1, &T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, T2, U> GetFn<ForSplat, I, (T1, T2), U> for F
where F: Fn(&T1, &T2) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> GetFn<ForIdSplat, I, (T1,), U> for F
where F: Fn(&I, &T1) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> GetFn<ForScopeSplat, I, (T1,), U> for F
where F: Fn(&Scope<I>, &T1) -> Result<U> + Send + 'static, I: Display,

Source§

impl<F, I, T1, U> GetFn<ForSplat, I, (T1,), U> for F
where F: Fn(&T1) -> Result<U> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T, U> GetFn<ForIdValue, I, T, U> for F
where F: Fn(&I, &T) -> Result<U> + Send + 'static, I: Display,

Source§

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

Source§

impl<F, I, T, U> GetFn<ForScopeValue, I, T, U> for F
where F: Fn(&Scope<I>, &T) -> Result<U> + Send + 'static, I: Display,

Source§

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