pub struct RangeFromExcludedToIncluded<T> {
pub start: T,
pub end: T,
}Expand description
Range with an excluded start bound and included end bound.
Fields§
§start: T§end: TImplementations§
Source§impl<T> RangeFromExcludedToIncluded<T>
impl<T> RangeFromExcludedToIncluded<T>
pub const fn new(start: T, end: T) -> RangeFromExcludedToIncluded<T>
Trait Implementations§
Source§impl<T: Measure + PartialEnum> AsRange for RangeFromExcludedToIncluded<T>
impl<T: Measure + PartialEnum> AsRange for RangeFromExcludedToIncluded<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 RangeFromExcludedToIncluded<T>
impl<T: Measure + PartialEnum> IntoRange for RangeFromExcludedToIncluded<T>
fn into_range(self) -> AnyRange<Self::Item>
Source§impl<T> RangeBounds<T> for RangeFromExcludedToIncluded<T>
impl<T> RangeBounds<T> for RangeFromExcludedToIncluded<T>
Auto Trait Implementations§
impl<T> Freeze for RangeFromExcludedToIncluded<T>where
T: Freeze,
impl<T> RefUnwindSafe for RangeFromExcludedToIncluded<T>where
T: RefUnwindSafe,
impl<T> Send for RangeFromExcludedToIncluded<T>where
T: Send,
impl<T> Sync for RangeFromExcludedToIncluded<T>where
T: Sync,
impl<T> Unpin for RangeFromExcludedToIncluded<T>where
T: Unpin,
impl<T> UnwindSafe for RangeFromExcludedToIncluded<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