pub struct Range<T>where
T: IntervalArithmetic,{
pub rtype: RangeType,
pub range: Interval<T>,
}Fields§
§rtype: RangeType§range: Interval<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: Interval<T>) -> Self
pub fn get_lower(&self) -> T
pub fn get_upper(&self) -> 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§
impl<T> Eq for Range<T>where
T: IntervalArithmetic + Eq,
impl<T> StructuralPartialEq for Range<T>where
T: IntervalArithmetic,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.