Searched refs:tail (Results 1 – 5 of 5) sorted by relevance
20 tail: usize, field82 self.tail = n; in grow()149 let tail = b.tail; in write() localVariable151 b.tail += 1; in write()153 b.tail = 0; in write()156 let tail = b.tail; in write() localVariable158 b.tail += 1; in write()160 b.tail = 0; in write()166 let tail = b.tail; in write() localVariable168 b.tail += n; in write()[all …]
73 b.tail = b.head; in test_wraparound()
37 pub(crate) tail: u16, field42 Self { head: 0, tail: 0 } in new()46 self.head == self.tail in empty()50 self.head != self.tail in has_data()54 seqnum_distance(self.head, self.tail) in count()58 if self.head == self.tail { in compare()61 if self.head < self.tail { in compare()62 if self.head <= pos && pos < self.tail { in compare()65 } else if self.head <= pos || pos < self.tail { in compare()68 if self.head.wrapping_sub(pos) <= pos.wrapping_sub(self.tail) { in compare()
89 while i != location.tail { in too_old()101 let mut i = location.tail.wrapping_sub(1); in too_old()206 self.filled.tail = sequence_number.wrapping_add(1); in push()235 self.active.tail = self.filled.tail; in build_sample()263 consume.tail = i.wrapping_add(1); in build_sample()269 consume.tail = i; in build_sample()290 for i in consume.tail..self.active.tail { in build_sample()320 self.active.head = consume.tail; in build_sample()325 self.active.head = consume.tail; in build_sample()330 while i != consume.tail { in build_sample()[all …]
5 let s1 = SampleSequenceLocation { head: 32, tail: 42 }; in test_sample_sequence_location_compare()15 tail: 32, in test_sample_sequence_location_compare()37 tail: 3, in test_sample_sequence_location_range()