[][src]Struct keyberon::matrix::Matrix

pub struct Matrix<C, R> { /* fields omitted */ }

Implementations

impl<C, R> Matrix<C, R>[src]

pub fn new<E>(cols: C, rows: R) -> Result<Self, E> where
    &'a mut R: IntoIterator<Item = &'a mut dyn OutputPin<Error = E>>, 
[src]

pub fn clear<'a, E: 'a>(&'a mut self) -> Result<(), E> where
    &'a mut R: IntoIterator<Item = &'a mut dyn OutputPin<Error = E>>, 
[src]

pub fn get<'a, E: 'a>(&'a mut self) -> Result<PressedKeys<R::Len, C::Len>, E> where
    &'a mut R: IntoIterator<Item = &'a mut dyn OutputPin<Error = E>>,
    R: HeterogenousArray,
    R::Len: ArrayLength<GenericArray<bool, C::Len>>,
    &'a C: IntoIterator<Item = &'a dyn InputPin<Error = E>>,
    C: HeterogenousArray,
    C::Len: ArrayLength<bool>, 
[src]

Auto Trait Implementations

impl<C, R> Send for Matrix<C, R> where
    C: Send,
    R: Send

impl<C, R> Sync for Matrix<C, R> where
    C: Sync,
    R: Sync

impl<C, R> Unpin for Matrix<C, R> where
    C: Unpin,
    R: 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.