pub(super) fn create_checked(lo: T, loc: bool, up: T, upc: bool) -> Self {
        if lo > up {
            panic!("Lower bound of an interval needs to be less than the upper one.");
        }

        if lo == up && (!loc || !upc) {
            panic!("Single elements need to have closed bounds.");
        }

        Self {
            imp: Some(NonEmptyInterval {
                lo: LowerBound::new(lo, loc),
                up: UpperBound::new(up, upc)
            })
        }
    }
///Create a new interval, panics if the provided data is invalid.
Create a new interval, panics if the provided data is invalid.
Create a new interval panics if the provided data is invalid .
pub(super) fn create_checked(lo: T, loc: bool, up: T, upc: bool) -> Self {
        if lo > up {
            panic!("Lower bound of an interval needs to be less than the upper one.");
        }
        if lo == up && (!loc || !upc) {
            panic!("Single elements need to have closed bounds.");
        }
        Self {
            imp: Some(NonEmptyInterval {
                lo: LowerBound::new(lo, loc),
                up: UpperBound::new(up, upc)
            })
        }
    }
pub ( super ) fn create_checked ( lo : T , loc : bool , up : T , upc : bool ) -> Self { if lo > up { panic ! ( " " ) ; } if lo == up && ( ! loc || ! upc ) { panic ! ( " " ) ; } Self { imp : Some ( NonEmptyInterval { lo : LowerBound :: new ( lo , loc ) , up : UpperBound :: new ( up , upc ) } ) } }
Create a new interval, panics if the provided data is invalid.
Create a new interval panics if the provided data is invalid .
lo
T
loc
bool
up
T
upc
bool
lo
T
loc
bool
up
T
upc
bool