pub fn iter_set_bits<R>(&self, range: R) -> IterSetBits<T>
    where
        R: RangeBounds<usize>,
    {
        IterSetBits {
            vob: self,
            range: self.process_range(range),
        }
    }
/// Returns an iterator which efficiently produces the index of each set bit in the specified
/// range. Assuming appropriate support from your CPU, this is much more efficient than
/// checking each bit individually.
///
/// # Examples
/// ```
/// use vob::Vob;
/// let mut v = Vob::new();
/// v.push(false);
/// v.push(true);
/// let mut iterator = v.iter_set_bits(..);
/// assert_eq!(iterator.next(), Some(1));
/// assert_eq!(iterator.next(), None);
/// ```
Returns an iterator which efficiently produces the index of each set bit in the specified
range. Assuming appropriate support from your CPU, this is much more efficient than
checking each bit individually.
Returns an iterator which efficiently produces the index of each set bit in the specified range . Assuming appropriate support from your CPU this is much more efficient than checking each bit individually .
pub fn iter_set_bits<R>(&self, range: R) -> IterSetBits<T>
    where
        R: RangeBounds<usize>,
    {
        IterSetBits {
            vob: self,
            range: self.process_range(range),
        }
    }
pub fn iter_set_bits < R > ( & self , range : R ) -> IterSetBits < T > where R : RangeBounds < usize > , { IterSetBits { vob : self , range : self . process_range ( range ) , } }
Returns an iterator which efficiently produces the index of each set bit in the specified
range.
Returns an iterator which efficiently produces the index of each set bit in the specified range .
&self
range
R
&self
range
R
examples
```
use vob::Vob;
let mut v = Vob::new();
v.push(false);
v.push(true);
let mut iterator = v.iter_set_bits(..);
assert_eq!(iterator.next(), Some(1));
assert_eq!(iterator.next(), None);
```
` ` ` use vob :: Vob ; let mut v = Vob :: new () ; v . push ( false ) ; v . push ( true ) ; let mut iterator = v . iter_set_bits ( .. ) ; assert_eq! ( iterator . next () Some ( 1 )) ; assert_eq! ( iterator . next () None ) ; ` ` `