pub struct Range<T>where
T: PartialOrd + Clone,{
pub rtype: RangeType,
pub range: Closed<T>,
}
Fields§
§rtype: RangeType
§range: Closed<T>
Implementations§
Source§impl<T> Range<T>where
T: IntervalArithmetic,
impl<T> Range<T>where
T: IntervalArithmetic,
pub fn new(lb: T, ub: T, rtype: RangeType) -> Self
pub fn default(default: T) -> Self
pub fn init(r: Closed<T>) -> Self
pub fn get_lower(&self) -> T
pub fn get_upper(&self) -> T
pub fn set_lower(&mut self, newl: T)
pub fn set_upper(&mut self, newu: T)
pub fn is_unknown(&self) -> bool
pub fn set_unknown(&mut self)
pub fn is_regular(&self) -> bool
pub fn set_regular(&mut self)
pub fn is_empty(&self) -> bool
pub fn set_empty(&mut self)
pub fn set_default(&mut self)
pub fn add(&self, other: &Range<T>) -> Range<T>
pub fn sub(&self, other: &Range<T>) -> Range<T>
pub fn mul(&self, other: &Range<T>) -> Range<T>
pub fn intersectwith(&self, other: &Range<T>) -> Range<T>
pub fn unionwith(&self, other: &Range<T>) -> Range<T>
Trait Implementations§
Source§impl<T> Display for Range<T>where
T: IntervalArithmetic,
impl<T> Display for Range<T>where
T: IntervalArithmetic,
impl<T> StructuralPartialEq for Range<T>where
T: PartialOrd + Clone,
Auto Trait Implementations§
impl<T> Freeze for Range<T>where
T: Freeze,
impl<T> RefUnwindSafe for Range<T>where
T: RefUnwindSafe,
impl<T> Send for Range<T>where
T: Send,
impl<T> Sync for Range<T>where
T: Sync,
impl<T> Unpin for Range<T>where
T: Unpin,
impl<T> UnwindSafe for Range<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more