pub fn greatest(&self) -> Option<usize> {
        self.0
            .iter()
            .enumerate()
            .rev()
            .find(|(_, &x)| x != 0)
            .map(|(i, x)| {
                (i + 1) * std::mem::size_of::<Bits>() * 8 - (x.leading_zeros() as usize + 1)
            })
    }
/// Returns the index of the greatest index.
///
/// # Example
/// ```
/// # use tuplequery::bitset;
/// assert_eq!(bitset![0 1 0 1].greatest(), Some(3));
/// assert_eq!(bitset![0 1 0 0].greatest(), Some(1));
/// assert_eq!(bitset![0].greatest(), None);
/// ```
Returns the index of the greatest index.
Returns the index of the greatest index .
pub fn greatest(&self) -> Option<usize> {
        self.0
            .iter()
            .enumerate()
            .rev()
            .find(|(_, &x)| x != 0)
            .map(|(i, x)| {
                (i + 1) * std::mem::size_of::<Bits>() * 8 - (x.leading_zeros() as usize + 1)
            })
    }
pub fn greatest ( & self ) -> Option < usize > { self . 0 . iter ( ) . enumerate ( ) . rev ( ) . find ( | ( _ , & x ) | x != 0 ) . map ( | ( i , x ) | { ( i + 1 ) * std :: mem :: size_of :: < Bits > ( ) * 8 - ( x . leading_zeros ( ) as usize + 1 ) } ) }
Returns the index of the greatest index.
Returns the index of the greatest index .
&self
&self
example
None
use tuplequery::bitset;
None