Lines Matching refs:elements
9 elements: usize, field
15 pub fn new(elements: usize) -> Self { in new()
16 let data = vec![0usize; (elements + usize::BITS as usize - 1) / (usize::BITS as usize)]; in new()
18 elements, in new()
34 return self.core.get(self.elements, &self.data, index); in get()
39 return self.core.set(self.elements, &mut self.data, index, value); in set()
44 self.elements in len()
59 self.core.first_false_index(self.elements, &self.data) in first_false_index()
64 self.core.last_index(self.elements, &self.data) in last_index()
69 self.core.last_false_index(self.elements, &self.data) in last_false_index()
74 self.core.next_index(self.elements, &self.data, index) in next_index()
79 self.core.next_false_index(self.elements, &self.data, index) in next_false_index()
84 self.core.prev_index(self.elements, &self.data, index) in prev_index()
89 self.core.prev_false_index(self.elements, &self.data, index) in prev_false_index()
94 self.core.invert(self.elements, &mut self.data); in invert()
99 self.core.is_full(self.elements, &self.data) in is_full()
116 self.core.set_all(self.elements, &mut self.data, value); in set_all()
124 let mut result = AllocBitmap::new(self.elements); in bitand()