pub struct RangeFromExcludedTo<T> {
pub start: T,
pub end: T,
}
Expand description
Range where both bounds are excluded.
Fields§
§start: T
§end: T
Implementations§
Source§impl<T> RangeFromExcludedTo<T>
impl<T> RangeFromExcludedTo<T>
pub const fn new(start: T, end: T) -> RangeFromExcludedTo<T>
Trait Implementations§
Source§impl<T: Measure + PartialEnum> AsRange for RangeFromExcludedTo<T>
impl<T: Measure + PartialEnum> AsRange for RangeFromExcludedTo<T>
fn is_empty(&self) -> bool
fn intersects<R: AsRange>(&self, other: &R) -> bool
fn connected_to<R: AsRange>(&self, other: &R) -> bool
fn intersected_with<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> AnyRange<&'a Self::Item>
fn without<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> Difference<&'a Self::Item>
fn product<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> Product<&'a Self::Item>
Source§impl<T: Measure + PartialEnum> IntoRange for RangeFromExcludedTo<T>
impl<T: Measure + PartialEnum> IntoRange for RangeFromExcludedTo<T>
fn into_range(self) -> AnyRange<Self::Item>
Source§impl<T> RangeBounds<T> for RangeFromExcludedTo<T>
impl<T> RangeBounds<T> for RangeFromExcludedTo<T>
Auto Trait Implementations§
impl<T> Freeze for RangeFromExcludedTo<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeFromExcludedTo<T>where
T: RefUnwindSafe,
impl<T> Send for RangeFromExcludedTo<T>where
T: Send,
impl<T> Sync for RangeFromExcludedTo<T>where
T: Sync,
impl<T> Unpin for RangeFromExcludedTo<T>where
T: Unpin,
impl<T> UnwindSafe for RangeFromExcludedTo<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