pub struct OpenRange<Idx> {
pub start: Idx,
pub end: Option<Idx>,
}Fields§
§start: Idx§end: Option<Idx>Trait Implementations§
Source§impl<Idx: Ord> Ord for OpenRange<Idx>
impl<Idx: Ord> Ord for OpenRange<Idx>
1.21.0 · 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<Idx: PartialOrd> PartialOrd for OpenRange<Idx>
impl<Idx: PartialOrd> PartialOrd for OpenRange<Idx>
Source§impl<Idx: Clone + Ord> PartialRange<Idx> for OpenRange<Idx>
impl<Idx: Clone + Ord> PartialRange<Idx> for OpenRange<Idx>
fn start(&self) -> Idx
fn end(&self) -> Option<Idx>
fn clamp(&self, start: impl Into<Idx>, end: impl Into<Idx>) -> Range<Idx>
fn clamp_left(&self, start: impl Into<Idx>) -> OpenRange<Idx>
fn clamp_right(&self, end: impl Into<Idx>) -> Range<Idx>
fn intersection<T, R>(&self, other: R) -> OpenRange<Idx>
impl<Idx: Copy> Copy for OpenRange<Idx>
impl<Idx: Eq> Eq for OpenRange<Idx>
impl<Idx> StructuralPartialEq for OpenRange<Idx>
Auto Trait Implementations§
impl<Idx> Freeze for OpenRange<Idx>where
Idx: Freeze,
impl<Idx> RefUnwindSafe for OpenRange<Idx>where
Idx: RefUnwindSafe,
impl<Idx> Send for OpenRange<Idx>where
Idx: Send,
impl<Idx> Sync for OpenRange<Idx>where
Idx: Sync,
impl<Idx> Unpin for OpenRange<Idx>where
Idx: Unpin,
impl<Idx> UnwindSafe for OpenRange<Idx>where
Idx: 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