Skip to main content

ActionRequirement

Trait ActionRequirement 

Source
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§

Source

type Filter: StateFilter<State, Input>

Satisfy the requirement.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<State> ActionRequirement<State, ()> for ()

Source§

type Filter = ()

Source§

fn collect_inputs( _state: &State, ) -> CollectedInputs<State, impl Iterator<Item = ()>>

Implementors§