pub fn new(max_interval: Duration, max_distance: f64) -> ClickCounter {
        ClickCounter {
            max_interval: Cell::new(max_interval),
            max_distance: Cell::new(max_distance),
            last_click: Cell::new(Instant::now()),
            click_count: Cell::new(0),
            last_pos: Cell::new(Point::new(f64::MAX, 0.0)),
        }
    }
/// Create a new ClickCounter with the given interval and distance.
Create a new ClickCounter with the given interval and distance.
Create a new ClickCounter with the given interval and distance .
pub fn new(max_interval: Duration, max_distance: f64) -> ClickCounter {
        ClickCounter {
            max_interval: Cell::new(max_interval),
            max_distance: Cell::new(max_distance),
            last_click: Cell::new(Instant::now()),
            click_count: Cell::new(0),
            last_pos: Cell::new(Point::new(f64::MAX, 0.0)),
        }
    }
pub fn new ( max_interval : Duration , max_distance : f64 ) -> ClickCounter { ClickCounter { max_interval : Cell :: new ( max_interval ) , max_distance : Cell :: new ( max_distance ) , last_click : Cell :: new ( Instant :: now ( ) ) , click_count : Cell :: new ( 0 ) , last_pos : Cell :: new ( Point :: new ( f64 :: MAX , 0.0 ) ) , } }
Create a new ClickCounter with the given interval and distance.
Create a new ClickCounter with the given interval and distance .
max_interval
Duration
max_distance
f64
max_interval
Duration
max_distance
f64