algorithm

Trait Timer

source
pub trait Timer {
    // Required method
    fn when(&self) -> u64;

    // Provided method
    fn when_mut(&mut self) -> u64 { ... }
}

Required Methods§

source

fn when(&self) -> u64

当时与现在的间隔,以确定插入确定的槽

Provided Methods§

source

fn when_mut(&mut self) -> u64

可能需要修改对象,此处用可变值

Implementations on Foreign Types§

source§

impl Timer for f32

source§

fn when(&self) -> u64

source§

impl Timer for f64

source§

fn when(&self) -> u64

source§

impl Timer for i8

source§

fn when(&self) -> u64

source§

impl Timer for i16

source§

fn when(&self) -> u64

source§

impl Timer for i32

source§

fn when(&self) -> u64

source§

impl Timer for i64

source§

fn when(&self) -> u64

source§

impl Timer for i128

source§

fn when(&self) -> u64

source§

impl Timer for u8

source§

fn when(&self) -> u64

source§

impl Timer for u16

source§

fn when(&self) -> u64

source§

impl Timer for u32

source§

fn when(&self) -> u64

source§

impl Timer for u64

source§

fn when(&self) -> u64

source§

impl Timer for u128

source§

fn when(&self) -> u64

source§

impl Timer for usize

source§

fn when(&self) -> u64

Implementors§