extra: Add .rev_iter() for bitv
This commit is contained in:
parent
5307d3674e
commit
ae09d95160
1 changed files with 5 additions and 0 deletions
|
@ -409,6 +409,11 @@ impl Bitv {
|
||||||
BitvIterator {bitv: self, next_idx: 0, end_idx: self.nbits}
|
BitvIterator {bitv: self, next_idx: 0, end_idx: self.nbits}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn rev_liter<'a>(&'a self) -> Invert<BitvIterator<'a>> {
|
||||||
|
self.iter().invert()
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns true if all bits are 0
|
/// Returns true if all bits are 0
|
||||||
pub fn is_false(&self) -> bool {
|
pub fn is_false(&self) -> bool {
|
||||||
match self.rep {
|
match self.rep {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue