extra: Add .rev_iter() for bitv

This commit is contained in:
blake2-ppc 2013-07-30 02:48:40 +02:00
parent 5307d3674e
commit ae09d95160

View file

@ -409,6 +409,11 @@ impl Bitv {
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
pub fn is_false(&self) -> bool {
match self.rep {