pub fn single(val: T) -> Self where T: Clone{
        Self{
            imp: Some(NonEmptyInterval{
                lo: LowerBound::new(val.clone(), true),
                up: UpperBound::new(val, true)
            })
        }
    }
/**
    Creates an interval that contains only a single value.

    # Example
    ```
    use advanced_collections::interval::Interval;
    fn main() {
        let i = Interval::single(3);
        assert_eq!(i, Interval::closed(3,3));
    }
    ```
    */
Creates an interval that contains only a single value.
Creates an interval that contains only a single value .
pub fn single(val: T) -> Self where T: Clone{
        Self{
            imp: Some(NonEmptyInterval{
                lo: LowerBound::new(val.clone(), true),
                up: UpperBound::new(val, true)
            })
        }
    }
pub fn single ( val : T ) -> Self where T : Clone { Self { imp : Some ( NonEmptyInterval { lo : LowerBound :: new ( val . clone ( ) , true ) , up : UpperBound :: new ( val , true ) } ) } }
Creates an interval that contains only a single value.
Creates an interval that contains only a single value .
val
T
val
T
example
```
use advanced_collections::interval::Interval;
fn main() {
let i = Interval::single(3);
assert_eq!(i, Interval::closed(3,3));
}
```
` ` ` use advanced_collections :: interval :: Interval ; fn main () { let i = Interval :: single ( 3 ) ; assert_eq! ( i Interval :: closed ( 3 3 )) ; } ` ` `