pub enum TimerNumber {
Timer0,
Timer1,
Timer2,
Timer3,
}Expand description
GBA timer selection (Timer 0-1 often used by sound)
Variants§
Timer0
Timer 0 (0x4000100) - IE/IF bit 3, often used by sound system
Timer1
Timer 1 (0x4000104) - IE/IF bit 4, often used by sound system
Timer2
Timer 2 (0x4000108) - IE/IF bit 5 (default)
Timer3
Timer 3 (0x400010C) - IE/IF bit 6
Trait Implementations§
Source§impl Clone for TimerNumber
impl Clone for TimerNumber
Source§fn clone(&self) -> TimerNumber
fn clone(&self) -> TimerNumber
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimerNumber
impl Debug for TimerNumber
impl Copy for TimerNumber
Auto Trait Implementations§
impl Freeze for TimerNumber
impl RefUnwindSafe for TimerNumber
impl Send for TimerNumber
impl Sync for TimerNumber
impl Unpin for TimerNumber
impl UnwindSafe for TimerNumber
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)