pub fn max(&self) -> Option<u32> {
        self.containers
            .last()
            .map(|tail| util::join(tail.key, tail.max()))
    }
/// Returns the maximum value in the set (if the set is non-empty).
///
/// # Examples
///
/// ```rust
/// use roaring::RoaringBitmap;
///
/// let mut rb = RoaringBitmap::new();
/// assert_eq!(rb.max(), None);
///
/// rb.insert(3);
/// rb.insert(4);
/// assert_eq!(rb.max(), Some(4));
/// ```
Returns the maximum value in the set (if the set is non-empty).
Returns the maximum value in the set ( if the set is non - empty ) .
pub fn max(&self) -> Option<u32> {
        self.containers
            .last()
            .map(|tail| util::join(tail.key, tail.max()))
    }
pub fn max ( & self ) -> Option < u32 > { self . containers . last ( ) . map ( | tail | util :: join ( tail . key , tail . max ( ) ) ) }
Returns the maximum value in the set (if the set is non-empty).
Returns the maximum value in the set ( if the set is non - empty ) .
&self
&self
examples
```rust
use roaring::RoaringBitmap.

let mut rb = RoaringBitmap::new();
assert_eq!(rb.max(), None).


` ` ` rust use roaring :: RoaringBitmap . let mut rb = RoaringBitmap :: new () ; assert_eq! ( rb . max () None ) .