MCPcopy Create free account
hub / github.com/aws/clock-bound / pop

Method pop

clock-bound/src/daemon/clock_sync_algorithm/ring_buffer.rs:47–49  ·  view source on GitHub ↗

Pops a value from the tail Used to remove stale values. Returns `None` if the values are empty

(&mut self)

Source from the content-addressed store, hash-verified

45 ///
46 /// Used to remove stale values. Returns `None` if the values are empty
47 pub fn pop(&mut self) -> Option<T> {
48 self.buffer.pop_front()
49 }
50
51 /// Returns the value at the given index, or `None` if the index is out of bounds
52 pub fn peek_at(&self, index: usize) -> Option<&T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected