Lines Matching refs:BitOps
3 use crate::traits::BitOps;
6 pub(crate) struct BitMapCore<T: BitOps> {
10 impl<T: BitOps> BitMapCore<T> {
27 let bit = <T as BitOps>::get(element, bit_index); in get()
41 let bit = <T as BitOps>::set(element, bit_index, value); in set()
63 let bit = <T as BitOps>::first_index(element); in first_index()
75 if let Some(bit) = <T as BitOps>::first_false_index(element) { in first_false_index()
86 if let Some(bit) = <T as BitOps>::last_index(element) { in last_index()
107 <T as BitOps>::invert(&mut mask); in last_false_index()
112 if let Some(bit) = <T as BitOps>::last_false_index(&last_element) { in last_false_index()
117 if let Some(bit) = <T as BitOps>::last_false_index(element) { in last_false_index()
135 if let Some(bit) = <T as BitOps>::next_index(element, bit_index) { in next_index()
140 if let Some(bit) = <T as BitOps>::first_index(element) { in next_index()
158 if let Some(bit) = <T as BitOps>::next_false_index(element, bit_index) { in next_false_index()
163 if let Some(bit) = <T as BitOps>::first_false_index(element) { in next_false_index()
180 if let Some(bit) = <T as BitOps>::prev_index(element, bit_index) { in prev_index()
185 if let Some(bit) = <T as BitOps>::last_index(element) { in prev_index()
198 if let Some(bit) = <T as BitOps>::prev_false_index(element, bit_index) { in prev_false_index()
203 if let Some(bit) = <T as BitOps>::last_false_index(element) { in prev_false_index()
213 <T as BitOps>::invert(element); in invert()