pub fn intersection_inplace(&mut self, other: &BitVector) -> &mut BitVector {
        assert_eq!(self.capacity(), other.capacity());
        for (v, v2) in self.vector.iter_mut().zip(other.vector.iter()) {
            if *v != 0 {
                *v &= *v2;
            }
        }
        self
    }
/// Intersection operator by modifying `self`
///
/// No extra memory allocation
Intersection operator by modifying `self`
No extra memory allocation
Intersection operator by modifying ` self ` No extra memory allocation
pub fn intersection_inplace(&mut self, other: &BitVector) -> &mut BitVector {
        assert_eq!(self.capacity(), other.capacity());
        for (v, v2) in self.vector.iter_mut().zip(other.vector.iter()) {
            if *v != 0 {
                *v &= *v2;
            }
        }
        self
    }
pub fn intersection_inplace ( & mut self , other : & BitVector ) -> & mut BitVector { assert_eq ! ( self capacity ( ) other capacity ( ) ) ; for ( v , v2 ) in self . vector . iter_mut ( ) . zip ( other . vector . iter ( ) ) { if * v != 0 { * v &= * v2 ; } } self }
Intersection operator by modifying `self`
No extra memory allocation
Intersection operator by modifying ` self ` No extra memory allocation
&mut self
other
&BitVector
&mut self
other
&BitVector