pub enum Endpoint<const SIDE: bool, T> {
Included(T),
Excluded(T),
Infinite,
}Expand description
The bound of an interval.
Variants§
Included(T)
The point is included in the interval.
Excluded(T)
The point is excluded from the interval.
Infinite
The interval is unbounded in this direction.
Implementations§
Source§impl<const SIDE: bool, T> Endpoint<SIDE, T>
impl<const SIDE: bool, T> Endpoint<SIDE, T>
Sourcepub fn into_bound(self) -> Bound<T>
pub fn into_bound(self) -> Bound<T>
Sourcepub fn into_exclusive_bound(self) -> Bound<T>
pub fn into_exclusive_bound(self) -> Bound<T>
Trait Implementations§
Source§impl<const SIDE: bool, T, U, Z> Add<Endpoint<SIDE, U>> for Endpoint<SIDE, T>where
T: Add<U, Output = Z>,
impl<const SIDE: bool, T, U, Z> Add<Endpoint<SIDE, U>> for Endpoint<SIDE, T>where
T: Add<U, Output = Z>,
Source§impl<const SIDE: bool, T: Ord> Ord for Endpoint<SIDE, T>
impl<const SIDE: bool, T: Ord> Ord for Endpoint<SIDE, T>
Source§impl<const SIDE_L: bool, const SIDE_R: bool, T: PartialEq> PartialEq<Endpoint<SIDE_R, T>> for Endpoint<SIDE_L, T>
impl<const SIDE_L: bool, const SIDE_R: bool, T: PartialEq> PartialEq<Endpoint<SIDE_R, T>> for Endpoint<SIDE_L, T>
Source§impl<const SIDE_L: bool, const SIDE_R: bool, T: PartialOrd> PartialOrd<Endpoint<SIDE_R, T>> for Endpoint<SIDE_L, T>
impl<const SIDE_L: bool, const SIDE_R: bool, T: PartialOrd> PartialOrd<Endpoint<SIDE_R, T>> for Endpoint<SIDE_L, T>
Source§impl<const SIDE: bool, T> PartialOrd<T> for Endpoint<SIDE, T>where
T: PartialOrd + Clone,
impl<const SIDE: bool, T> PartialOrd<T> for Endpoint<SIDE, T>where
T: PartialOrd + Clone,
impl<const SIDE: bool, T: Copy> Copy for Endpoint<SIDE, T>
impl<const SIDE: bool, T: Eq> Eq for Endpoint<SIDE, T>
Auto Trait Implementations§
impl<const SIDE: bool, T> Freeze for Endpoint<SIDE, T>where
T: Freeze,
impl<const SIDE: bool, T> RefUnwindSafe for Endpoint<SIDE, T>where
T: RefUnwindSafe,
impl<const SIDE: bool, T> Send for Endpoint<SIDE, T>where
T: Send,
impl<const SIDE: bool, T> Sync for Endpoint<SIDE, T>where
T: Sync,
impl<const SIDE: bool, T> Unpin for Endpoint<SIDE, T>where
T: Unpin,
impl<const SIDE: bool, T> UnwindSafe for Endpoint<SIDE, 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