Expand description
let callable = callable;
assert_eq!(callable.call_fn((&1,)), 1);
assert_eq!(callable.emit(&2), 2);
let callable = callable.provide_first_argument_refed(3);
assert_eq!(callable.call_fn(()), 3);Re-exports§
pub use argument::ArgumentOfType;pub use argument::ArgumentType;pub use argument::ArgumentTypes;pub use argument::ArgumentsOfTypes;
Modules§
Macros§
Enums§
Traits§
- Callable
- Anything implementing CallableOne has the following traits:
- Callable
One - A trait alias for
Callablewith exactly one argument. - Callable
With Fixed Arguments - A
Callablewhich has no overloading. - IsCallable
- Maybe
Handle Event - Stated
Event - Tuple
- This trait is sealed and only implemented for tuples (with max 4 elements).