Trait resman::FnRes[][src]

pub trait FnRes: FnMeta {
    type Ret;
    fn call(&self, resources: &Resources) -> Self::Ret;
fn try_call(&self, resources: &Resources) -> Result<Self::Ret, BorrowFail>; }
Expand description

Function that gets its arguments / parameters from a Resources map.

This allows consumers of this library to hold onto multiple resource functions as Box<dyn FnRes>, even though their arguments may be different.

Associated Types

Return type of the function.

Required methods

Runs the function.

Runs the function.

Implementations on Foreign Types

Implementors