pub struct Interval<T: Item> { /* private fields */ }
Expand description
The interval type, main type of this library.
Trait Implementations§
Source§impl<T: Item> IntoIterator for Interval<T>
impl<T: Item> IntoIterator for Interval<T>
Source§impl<T: Item> Operations for Interval<T>
impl<T: Item> Operations for Interval<T>
Source§fn empty(&self) -> bool
fn empty(&self) -> bool
Returns whether the interval is empty, regardless of it’s actual type.
Source§fn intersection(self, other: Self::Output) -> Self::Output
fn intersection(self, other: Self::Output) -> Self::Output
Returns the intersection of two intervals, shorthand for
interval & interval
.impl<T: Item> Eq for Interval<T>
Auto Trait Implementations§
impl<T> Freeze for Interval<T>where
T: Freeze,
impl<T> RefUnwindSafe for Interval<T>where
T: RefUnwindSafe,
impl<T> Send for Interval<T>where
T: Send,
impl<T> Sync for Interval<T>where
T: Sync,
impl<T> Unpin for Interval<T>where
T: Unpin,
impl<T> UnwindSafe for Interval<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