Lines Matching refs:storage
6 storage: Storage, field
10 pub const fn new(storage: Storage) -> Self { in new()
11 Self { storage } in new()
20 debug_assert!(index / 8 < self.storage.as_ref().len()); in get_bit()
22 let byte = self.storage.as_ref()[byte_index]; in get_bit()
33 debug_assert!(index / 8 < self.storage.as_ref().len()); in set_bit()
35 let byte = &mut self.storage.as_mut()[byte_index]; in set_bit()
51 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in get()
52 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); in get()
69 debug_assert!(bit_offset / 8 < self.storage.as_ref().len()); in set()
70 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len()); in set()