Searched refs:BitOps (Results 1 – 2 of 2) sorted by relevance
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()[all …]
4 pub trait BitOps: interface31 impl BitOps for $target { impl211 pub trait BitMapOps<T: BitOps> {