pub struct Keys2<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: 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§
Trait Implementations§
Source§impl<K0: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, Ctx: Debug, Ev: Debug, PK: Debug, const M: usize> Debug for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, K1: Debug + Key<Context = Ctx, Event = Ev, PressedKey = PK>, Ctx: Debug, Ev: Debug, PK: Debug, const M: usize> Debug for Keys2<K0, K1, Ctx, Ev, PK, M>
Source§impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> Index<usize> for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, K1: Key<Context = Ctx, Event = Ev, PressedKey = PK> + 'static, Ctx, Ev, PK, const M: usize> Index<usize> for Keys2<K0, K1, Ctx, Ev, PK, M>
Auto Trait Implementations§
impl<K0, K1, Ctx, Ev, PK, const M: usize> Freeze for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0, K1, Ctx, Ev, PK, const M: usize> RefUnwindSafe for Keys2<K0, K1, Ctx, Ev, PK, M>where
K0: RefUnwindSafe,
K1: RefUnwindSafe,
impl<K0, K1, Ctx, Ev, PK, const M: usize> Send for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0, K1, Ctx, Ev, PK, const M: usize> Sync for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0, K1, Ctx, Ev, PK, const M: usize> Unpin for Keys2<K0, K1, Ctx, Ev, PK, M>
impl<K0, K1, Ctx, Ev, PK, const M: usize> UnwindSafe for Keys2<K0, K1, Ctx, Ev, PK, M>where
K0: UnwindSafe,
K1: UnwindSafe,
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