pub enum Bound<T> {
Bounded(T),
Unbounded,
}Expand description
An endpoint of an interval of time.
Variants§
Bounded(T)
A finite endpoint.
Indicates that there is a bound in this direction.
Unbounded
An infinite endpoint.
Indicates that there is no bound in this direction.
Trait Implementations§
impl<T: Copy> Copy for Bound<T>
impl<T: Eq> Eq for Bound<T>
Source§impl<T: Ord> Ord for Bound<T>
impl<T: Ord> Ord for Bound<T>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialOrd> PartialOrd for Bound<T>
impl<T: PartialOrd> PartialOrd for Bound<T>
impl<T> StructuralPartialEq for Bound<T>
Auto Trait Implementations§
impl<T> Freeze for Bound<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bound<T>where
T: RefUnwindSafe,
impl<T> Send for Bound<T>where
T: Send,
impl<T> Sync for Bound<T>where
T: Sync,
impl<T> Unpin for Bound<T>where
T: Unpin,
impl<T> UnsafeUnpin for Bound<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Bound<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