pub struct Bounds<T> {
pub start: Bound<T>,
pub end: Bound<T>,
}Expand description
The endpoints of an interval of time.
Fields§
§start: Bound<T>Start index bound.
Returns the start value as a Bound.
end: Bound<T>End index bound.
Returns the end value as a Bound.
Trait Implementations§
impl<T: Copy> Copy for Bounds<T>
impl<T: Eq> Eq for Bounds<T>
Source§impl<T: Ord> Ord for Bounds<T>
impl<T: Ord> Ord for Bounds<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 Bounds<T>
impl<T: PartialOrd> PartialOrd for Bounds<T>
impl<T> StructuralPartialEq for Bounds<T>
Auto Trait Implementations§
impl<T> Freeze for Bounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for Bounds<T>where
T: RefUnwindSafe,
impl<T> Send for Bounds<T>where
T: Send,
impl<T> Sync for Bounds<T>where
T: Sync,
impl<T> Unpin for Bounds<T>where
T: Unpin,
impl<T> UnsafeUnpin for Bounds<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Bounds<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