Struct rs::layout::ActiveButtons
source · [−]pub struct ActiveButtons(HashMap<ButtonPosition, KeyState>);
Tuple Fields
0: HashMap<ButtonPosition, KeyState>
Implementations
sourceimpl ActiveButtons
impl ActiveButtons
fn insert(&mut self, button: ButtonPosition, state: KeyState) -> Presence
pub fn get(&self, button: &ButtonPosition) -> &KeyState
fn remove(&mut self, button: &ButtonPosition) -> Presence
fn iter_pressed(&self) -> impl Iterator<Item = (&ButtonPosition, &KeyState)>
Trait Implementations
sourceimpl Clone for ActiveButtons
impl Clone for ActiveButtons
sourcefn clone(&self) -> ActiveButtons
fn clone(&self) -> ActiveButtons
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ActiveButtons
impl Send for ActiveButtons
impl Sync for ActiveButtons
impl Unpin for ActiveButtons
impl UnwindSafe for ActiveButtons
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more