|
@@ -15,15 +15,21 @@ impl GenBits {
|
|
}
|
|
}
|
|
|
|
|
|
pub fn clear(&mut self) {
|
|
pub fn clear(&mut self) {
|
|
|
|
+ self.0.fill(false);
|
|
|
|
+ /*
|
|
for i in 0..self.0.len() {
|
|
for i in 0..self.0.len() {
|
|
self.0[i] = false;
|
|
self.0[i] = false;
|
|
}
|
|
}
|
|
|
|
+ */
|
|
}
|
|
}
|
|
|
|
|
|
pub fn fill(&mut self, value: bool) {
|
|
pub fn fill(&mut self, value: bool) {
|
|
|
|
+ self.0.fill(value);
|
|
|
|
+ /*
|
|
for i in 0..self.0.len() {
|
|
for i in 0..self.0.len() {
|
|
self.0[i] = value;
|
|
self.0[i] = value;
|
|
}
|
|
}
|
|
|
|
+ */
|
|
}
|
|
}
|
|
|
|
|
|
pub fn set(&mut self, bit: usize, state: bool) {
|
|
pub fn set(&mut self, bit: usize, state: bool) {
|