pub trait AtomicBitOps {
// Required methods
fn set_bit(&self, bit: usize) -> bool;
fn clear_bit(&self, bit: usize) -> bool;
fn toggle_bit(&self, bit: usize) -> bool;
fn test_bit(&self, bit: usize) -> bool;
fn find_first_set(&self) -> Option<usize>;
}
Expand description
Atomic bit operations
Required Methods§
Sourcefn toggle_bit(&self, bit: usize) -> bool
fn toggle_bit(&self, bit: usize) -> bool
Toggle bit atomically
Sourcefn find_first_set(&self) -> Option<usize>
fn find_first_set(&self) -> Option<usize>
Find first set bit