pub fn most_recent(&self) -> Option<&T> {
        if self.is_empty() {
            None
        } else {
            if self.write_index == 0 {
                self.buffer.last()
            } else {
                Some(&self.buffer[self.write_index - 1])
            }
        }
    }
/// Get the most recent value written to the buffer.
Get the most recent value written to the buffer.
Get the most recent value written to the buffer .
pub fn most_recent(&self) -> Option<&T> {
        if self.is_empty() {
            None
        } else {
            if self.write_index == 0 {
                self.buffer.last()
            } else {
                Some(&self.buffer[self.write_index - 1])
            }
        }
    }
pub fn most_recent ( & self ) -> Option < & T > { if self . is_empty ( ) { None } else { if self . write_index == 0 { self . buffer . last ( ) } else { Some ( & self . buffer [ self . write_index - 1 ] ) } } }
Get the most recent value written to the buffer.
Get the most recent value written to the buffer .
&self
&self