pub enum EndPoint<T: TotalOrd> {
Exclusive(T),
Inclusive(T),
}
Variants
Exclusive(T)
Inclusive(T)
Implementations
sourceimpl<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> StructuralEq for EndPoint<T>
impl<T: TotalOrd> StructuralPartialEq for EndPoint<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more