Trait PtrTimer

Source
pub trait PtrTimer {
    const ME: Timer;

    // Required methods
    fn timer(&mut self) -> &mut Timer;
    unsafe fn take() -> Self;
}

Required Associated Constants§

Required Methods§

Source

fn timer(&mut self) -> &mut Timer

Source

unsafe fn take() -> Self

§Safety

You only take once

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PtrTimer for Timer0

Source§

const ME: Timer = TIMER0

Source§

impl PtrTimer for Timer1

Source§

const ME: Timer = TIMER1

Source§

impl PtrTimer for Timer2

Source§

const ME: Timer = TIMER2