pub enum EndPoint<T: TotalOrd> {
Exclusive(T),
Inclusive(T),
}
Variants§
Implementations§
source§impl<T: TotalOrd> EndPoint<T>
impl<T: TotalOrd> EndPoint<T>
pub fn inner(&self) -> &T
pub fn take(self) -> T
pub fn as_ref(&self) -> EndPoint<&T>
pub fn is_exclusive(&self) -> bool
pub fn is_inclusive(&self) -> bool
pub fn leftmost(self, other: EndPoint<T>) -> EndPoint<T>where
T: Ord,
pub fn rightmost(self, other: EndPoint<T>) -> EndPoint<T>where
T: Ord,
Trait Implementations§
impl<T: Copy + TotalOrd> Copy for EndPoint<T>
impl<T: Eq + TotalOrd> Eq for EndPoint<T>
impl<T: TotalOrd> StructuralPartialEq for EndPoint<T>
Auto Trait Implementations§
impl<T> Freeze for EndPoint<T>where
T: Freeze,
impl<T> RefUnwindSafe for EndPoint<T>where
T: RefUnwindSafe,
impl<T> Send for EndPoint<T>where
T: Send,
impl<T> Sync for EndPoint<T>where
T: Sync,
impl<T> Unpin for EndPoint<T>where
T: Unpin,
impl<T> UnwindSafe for EndPoint<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)