GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs.rs
  • algorithm-0.1.18
  • Permalink
  • Docs.rs crate page
  • Apache-2.0
  • Repository
  • crates.io
  • Source
  • tickbh
  • algorithm-macro ^0.1 normal
  • hashbrown ^0.15.2 normal
  • lazy_static ^1.5.0 normal
  • log ^0.4.26 normal
  • libc ^0.2.169 dev

This view

  • Original page
  • New address

GeezerVison is showing docs.rs — step_timer.rs - source

algorithm/timer/
step_timer.rs

1use super::Timer;
2
3pub struct StepTimer<T: Timer, V> {
4    pub step: T,
5    pub val: V,
6}
7
8impl<T: Timer, V> StepTimer<T, V> {
9    pub fn new(val: V, step: T) -> Self {
10        Self { val, step }
11    }
12}
13
14impl<T: Timer, V> Timer for StepTimer<T, V> {
15    fn when(&self) -> u64 {
16        self.step.when()
17    }
18}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.