/// Adds a value to the set. Returns `true` if the value was not already present in the set.
///
/// # Examples
///
/// ```rust
/// use roaring::RoaringTreemap;
///
/// let mut rb = RoaringTreemap::new();
/// assert_eq!(rb.insert(3), true);
/// assert_eq!(rb.insert(3), false);
/// assert_eq!(rb.contains(3), true);
/// ```
Adds a value to the set. Returns `true` if the value was not already present in the set.
Adds a value to the set . Returns ` true ` if the value was not already present in the set .
pub fn insert(&mut self, value: u64) -> bool {
        let (hi, lo) = util::split(value);
        self.map
            .entry(hi)
            .or_insert_with(RoaringBitmap::new)
            .insert(lo)
    }
pub fn insert ( & mut self , value : u64 ) -> bool { let ( hi , lo ) = util :: split ( value ) ; self . map . entry ( hi ) . or_insert_with ( RoaringBitmap :: new ) . insert ( lo ) }
Adds a value to the set.
Adds a value to the set .
&mut self
value
u64
examples
```rust
use roaring::RoaringTreemap.

let mut rb = RoaringTreemap::new();
assert_eq!(rb.insert(3), true);
assert_eq!(rb.insert(3), false);
assert_eq!(rb.contains(3), true);
```
` ` ` rust use roaring :: RoaringTreemap . let mut rb = RoaringTreemap :: new () ; assert_eq! ( rb . insert ( 3 ) true ) ; assert_eq! ( rb . insert ( 3 ) false ) ; assert_eq! ( rb . contains ( 3 ) true ) ; ` ` `