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

Method iter

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

iterate from the tail to the head (oldest to newest) Use `rev` on the iterator if you want to search the other way

(&self)

Source from the content-addressed store, hash-verified

92 ///
93 /// Use `rev` on the iterator if you want to search the other way
94 pub fn iter(&self) -> impl DoubleEndedIterator<Item = &T> {
95 self.buffer.iter()
96 }
97}
98
99impl<T: TscRtt> RingBuffer<T> {

Callers 4

total_sizeMethod · 0.45
min_rttMethod · 0.45
min_rtt_in_quarterMethod · 0.45
iterFunction · 0.45

Calls

no outgoing calls

Tested by 1

iterFunction · 0.36