Enum crankit_input::Button
source · #[repr(u8)]pub enum Button {
Left = 1,
Right = 2,
Up = 4,
Down = 8,
B = 16,
A = 32,
}Expand description
A button on the playdate
Variants§
Trait Implementations§
source§impl Extend<Button> for Set
impl Extend<Button> for Set
source§fn extend<T: IntoIterator<Item = Button>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Button>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<Button> for Set
impl FromIterator<Button> for Set
source§impl PartialEq for Button
impl PartialEq for Button
impl Copy for Button
impl Eq for Button
impl StructuralEq for Button
impl StructuralPartialEq for Button
Auto Trait Implementations§
impl RefUnwindSafe for Button
impl Send for Button
impl Sync for Button
impl Unpin for Button
impl UnwindSafe for Button
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