pub fn is_single(&self) -> bool {
        if let Some(ref a) = self.imp {
            a.lo.val() == a.up.val()
        } else {
            false
        }
    }
/**
    Checks if the interval is just a single value.

    # Example

    ```
    use advanced_collections::interval::Interval;
    fn main() {
        let i = Interval::closed(5,5);
        assert!(i.is_single());
    }
    ```
    */
Checks if the interval is just a single value.
Checks if the interval is just a single value .
pub fn is_single(&self) -> bool {
        if let Some(ref a) = self.imp {
            a.lo.val() == a.up.val()
        } else {
            false
        }
    }
pub fn is_single ( & self ) -> bool { if let Some ( ref a ) = self . imp { a . lo . val ( ) == a . up . val ( ) } else { false } }
Checks if the interval is just a single value.
Checks if the interval is just a single value .
&self
&self
example
```
use advanced_collections::interval::Interval;
fn main() {
let i = Interval::closed(5,5);
assert!(i.is_single());
}
```
` ` ` use advanced_collections :: interval :: Interval ; fn main () { let i = Interval :: closed ( 5 5 ) ; assert! ( i . is_single () ) ; } ` ` `