[][src]Type Definition kul::common::stream::OperatorBindings

type OperatorBindings<Extra = (), CombinerError = ()> = HashMapOperatorBindings<DatumAllocator<Extra>, Box<OpFn<DatumAllocator<Extra>, CombinerError>>, Box<ApFn<DatumAllocator<Extra>, CombinerError>>, CombinerError>;

Chosen so that you may establish bindings simply using the std HashMap and with flexible trait objects for the function types.

This OperatorBindings type is a HashMapOperatorBindings that binds operator sub-forms, as our Datum type, to Combiner macro functions/closures, as Boxed dyn trait objects.

The Extra type parameter determines the type used in the Datum::Extra variant of our Datum type. It defaults to ().

The CombinerError type parameter determines the type used in the Error::FailedCombiner variant of the crate's error type which your Combiner functions may return. It defaults to ().