pub enum TypeInterval {
Closed {
lower: Bound,
upper: Bound,
},
LowerBound(Bound),
UpperBound(Bound),
Point(Bound),
}
Expand description
Type interval.
Variants§
Closed
Closed interval between a lower and an upper bound.
LowerBound(Bound)
An open interval with a lower bound.
UpperBound(Bound)
An open interval with an upper bound.
Point(Bound)
Point interval. Whether the bound is inclusive determines whether it is a point inclusion or exclusion.
Trait Implementations§
Source§impl Clone for TypeInterval
impl Clone for TypeInterval
Source§fn clone(&self) -> TypeInterval
fn clone(&self) -> TypeInterval
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TypeInterval
impl Debug for TypeInterval
Source§impl PartialEq for TypeInterval
impl PartialEq for TypeInterval
impl StructuralPartialEq for TypeInterval
Auto Trait Implementations§
impl Freeze for TypeInterval
impl RefUnwindSafe for TypeInterval
impl !Send for TypeInterval
impl !Sync for TypeInterval
impl Unpin for TypeInterval
impl UnwindSafe for TypeInterval
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