MCPcopy Create free account
hub / github.com/Andy-Python-Programmer/aero / set

Method set

src/aero_kernel/src/utils/bitmap.rs:81–87  ·  view source on GitHub ↗

Sets the bit at the provided `bit_idx` to `yes` (`true` or `false`). ## Example ```rust use alloc::alloc::Global; let mut bitmap = Bitmap::new_in(Global, 4096); assert!(!bitmap.is_set(69)); bitmap.set(69, true); assert!(bitmap.is_set(69)); ```

(&mut self, bit_idx: usize, yes: bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

find_first_unsetFunction · 0.45
find_first_setFunction · 0.45

Calls 3

mapMethod · 0.80
get_mutMethod · 0.80
set_bitMethod · 0.80

Tested by 2

find_first_unsetFunction · 0.36
find_first_setFunction · 0.36