/// Returns whether the bit at the given index is set.
///
/// # Example
/// ```
/// # use tuplequery::bitset;
/// assert!(bitset![0 1 0 1].has(1));
/// assert!(bitset![0 1 0 1].has(3));
/// assert!(!bitset![0 1 0 1].has(0));
/// assert!(!bitset![0 1 0 1].has(2));
/// ```
Returns whether the bit at the given index is set.
Returns whether the bit at the given index is set .
pub fn has(&self, index: usize) -> bool {
        let pos = Bitset::pos(index);
        pos < self.0.len() && (self.0[Bitset::pos(index)] & Bitset::bit(index)) != 0
    }
pub fn has ( & self , index : usize ) -> bool { let pos = Bitset :: pos ( index ) ; pos < self . 0 . len ( ) && ( self . 0 [ Bitset :: pos ( index ) ] & Bitset :: bit ( index ) ) != 0 }
Returns whether the bit at the given index is set.
Returns whether the bit at the given index is set .
&self
index
usize
example
None
use tuplequery::bitset;
None