pub fn new(max_size: usize) -> Self {
        HistoryBuffer {
            max_size,
            write_index: 0,
            buffer: Vec::with_capacity(max_size),
            last_data_at: time::Instant::now(),
        }
    }
/// Create a new buffer with a specified max depth.
Create a new buffer with a specified max depth.
Create a new buffer with a specified max depth .
pub fn new(max_size: usize) -> Self {
        HistoryBuffer {
            max_size,
            write_index: 0,
            buffer: Vec::with_capacity(max_size),
            last_data_at: time::Instant::now(),
        }
    }
pub fn new ( max_size : usize ) -> Self { HistoryBuffer { max_size , write_index : 0 , buffer : Vec :: with_capacity ( max_size ) , last_data_at : time :: Instant :: now ( ) , } }
Create a new buffer with a specified max depth.
Create a new buffer with a specified max depth .
max_size
usize
max_size
usize