Home
last modified time | relevance | path

Searched refs:BitOps (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs3 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 …]
H A Dtraits.rs4 pub trait BitOps: interface
31 impl BitOps for $target { impl
211 pub trait BitMapOps<T: BitOps> {