Skip to content

Commit ae09d95

Browse files
author
blake2-ppc
committed
extra: Add .rev_iter() for bitv
1 parent 5307d36 commit ae09d95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libextra/bitv.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,11 @@ impl Bitv {
409409
BitvIterator {bitv: self, next_idx: 0, end_idx: self.nbits}
410410
}
411411

412+
#[inline]
413+
pub fn rev_liter<'a>(&'a self) -> Invert<BitvIterator<'a>> {
414+
self.iter().invert()
415+
}
416+
412417
/// Returns true if all bits are 0
413418
pub fn is_false(&self) -> bool {
414419
match self.rep {

0 commit comments

Comments
 (0)