pub trait ActionRequirement<State, Input> {
type Filter: StateFilter<State, Input>;
// Required method
fn collect_inputs(
state: &State,
) -> CollectedInputs<State, impl Iterator<Item = Input>>;
}Required Associated Types§
Sourcetype Filter: StateFilter<State, Input>
type Filter: StateFilter<State, Input>
Satisfy the requirement.
Required Methods§
Sourcefn collect_inputs(
state: &State,
) -> CollectedInputs<State, impl Iterator<Item = Input>>
fn collect_inputs( state: &State, ) -> CollectedInputs<State, impl Iterator<Item = Input>>
All the possible inputs for the requirement (but does not necessarily pass the filter).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.