[][src]Struct keyberon::matrix::PressedKeys

pub struct PressedKeys<U, V>(pub GenericArray<GenericArray<bool, V>, U>)
where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>
;

Implementations

impl<U, V> PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

pub fn iter_pressed<'a>(
    &'a self
) -> impl Iterator<Item = (usize, usize)> + Clone + 'a
[src]

Trait Implementations

impl<U: Default, V: Default> Default for PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

impl<U: Eq, V: Eq> Eq for PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

impl<'a, U, V> IntoIterator for &'a PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>,
    U: ArrayLength<&'a GenericArray<bool, V>>, 
[src]

type IntoIter = Iter<'a, GenericArray<bool, V>>

Which kind of iterator are we turning this into?

type Item = &'a GenericArray<bool, V>

The type of the elements being iterated over.

impl<U: PartialEq, V: PartialEq> PartialEq<PressedKeys<U, V>> for PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

impl<U, V> StructuralEq for PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

impl<U, V> StructuralPartialEq for PressedKeys<U, V> where
    V: ArrayLength<bool>,
    U: ArrayLength<GenericArray<bool, V>>, 
[src]

Auto Trait Implementations

impl<U, V> Send for PressedKeys<U, V>

impl<U, V> Sync for PressedKeys<U, V>

impl<U, V> Unpin for PressedKeys<U, V> where
    <U as ArrayLength<GenericArray<bool, V>>>::ArrayType: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.