Struct KeyMatrix

Source
pub struct KeyMatrix<CN, RN, C, R>{ /* private fields */ }

Implementations§

Source§

impl<CN, RN, C, R> KeyMatrix<CN, RN, C, R>

Source

pub fn new<TU, CT, T>( counter: &mut CT, freq: T, debounce_count: u8, cols: C, rows: R, ) -> KeyMatrix<CN, RN, C, R>
where T: Into<TU>, CT: CountDown<Time = TU> + Periodic, C: KeyColumns<CN>, R: KeyRows<RN>,

Source

pub fn poll(&mut self)

Source

pub fn current_state(&self) -> GenericArray<GenericArray<bool, RN>, CN>

Source

pub fn row_size(&self) -> usize

Source

pub fn col_size(&self) -> usize

Auto Trait Implementations§

§

impl<CN, RN, C, R> Freeze for KeyMatrix<CN, RN, C, R>
where C: Freeze, R: Freeze, <CN as ArrayLength<GenericArray<u8, RN>>>::ArrayType: Freeze,

§

impl<CN, RN, C, R> RefUnwindSafe for KeyMatrix<CN, RN, C, R>

§

impl<CN, RN, C, R> Send for KeyMatrix<CN, RN, C, R>
where C: Send, R: Send, CN: Send, RN: Send,

§

impl<CN, RN, C, R> Sync for KeyMatrix<CN, RN, C, R>
where C: Sync, R: Sync, CN: Sync, RN: Sync,

§

impl<CN, RN, C, R> Unpin for KeyMatrix<CN, RN, C, R>
where C: Unpin, R: Unpin, <CN as ArrayLength<GenericArray<u8, RN>>>::ArrayType: Unpin, CN: Unpin, RN: Unpin,

§

impl<CN, RN, C, R> UnwindSafe for KeyMatrix<CN, RN, C, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.