pub struct Keys4<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK>, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK>, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK>, Ctx, Ev, PK, const M: usize = { crate::key::MAX_KEY_EVENTS }>(/* private fields */);
Expand description
A tuple struct for some number of keys.
Implementations§
Source§impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, Ctx, Ev, PK, const M: usize> Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + Copy, Ctx, Ev, PK, const M: usize> Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
Sourcepub const fn new((k0, k1, k2, k3): (K0, K1, K2, K3)) -> Self
pub const fn new((k0, k1, k2, k3): (K0, K1, K2, K3)) -> Self
Constructs a KeysN tuple struct with the given tuple.
Trait Implementations§
Source§impl<K0: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K2: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K3: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, Ctx: Debug, Ev: Debug, PK: Debug, const M: usize> Debug for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K2: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K3: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, Ctx: Debug, Ev: Debug, PK: Debug, const M: usize> Debug for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
Source§impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> Index<usize> for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> Index<usize> for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
Source§impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> IndexMut<usize> for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K2: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K3: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> IndexMut<usize> for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
Auto Trait Implementations§
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> Freeze for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> RefUnwindSafe for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> Send for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> Sync for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> Unpin for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
impl<K0, K1, K2, K3, Ctx, Ev, PK, const M: usize> UnwindSafe for Keys4<K0, K1, K2, K3, Ctx, Ev, PK, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more