Trait bismuth::input::InputDifference
[−]
[src]
pub trait InputDifference<E> where
E: Element, { type Difference: IntoIterator<Item = (E, <E::State as State>::Difference)>; fn difference(&self) -> Self::Difference; }
Determines the difference in state for an input element.
Associated Types
type Difference: IntoIterator<Item = (E, <E::State as State>::Difference)>
Iterable representation of differences in state.
Required Methods
fn difference(&self) -> Self::Difference
Gets the difference in state for an input element.
Implementors
impl InputDifference<MousePosition> for Mouse
impl InputDifference<MouseProximity> for Mouse
impl<E, S, T> InputDifference<E> for T where
T: Input,
T::State: CompositeState<E, Composite = HashSet<E>> + InputState<E>,
E: Element<State = S> + Eq + Hash,
S: State<Difference = S>,