Struct RangeFromExcluded

Source
pub struct RangeFromExcluded<T> {
    pub start: T,
}
Expand description

Range with only an start bound, excluded.

Fields§

§start: T

Implementations§

Source§

impl<T> RangeFromExcluded<T>

Source

pub const fn new(start: T) -> RangeFromExcluded<T>

Trait Implementations§

Source§

impl<T: Measure + PartialEnum> AsRange for RangeFromExcluded<T>

Source§

type Item = T

Type of the elements of the range.
Source§

fn start(&self) -> Bound<&Self::Item>

Start bound of the range.
Source§

fn end(&self) -> Bound<&Self::Item>

End bound of the range.
Source§

fn is_empty(&self) -> bool

Source§

fn intersects<R: AsRange>(&self, other: &R) -> bool
where Self::Item: PartialOrd<R::Item> + Measure<R::Item>,

Source§

fn connected_to<R: AsRange>(&self, other: &R) -> bool
where Self::Item: PartialOrd<R::Item> + Measure<R::Item>,

Source§

fn intersected_with<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> AnyRange<&'a Self::Item>
where Self::Item: PartialOrd + Measure,

Source§

fn without<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> Difference<&'a Self::Item>
where Self::Item: PartialOrd + Measure,

Source§

fn product<'a, R: AsRange<Item = Self::Item>>( &'a self, other: &'a R, ) -> Product<&'a Self::Item>
where Self::Item: PartialOrd + Measure,

Source§

impl<T: Measure + PartialEnum> IntoRange for RangeFromExcluded<T>

Source§

fn into_range(self) -> AnyRange<Self::Item>

Source§

impl<T> RangeBounds<T> for RangeFromExcluded<T>

Source§

fn start_bound(&self) -> Bound<&T>

Start index bound. Read more
Source§

fn end_bound(&self) -> Bound<&T>

End index bound. Read more
1.35.0 · Source§

fn contains<U>(&self, item: &U) -> bool
where T: PartialOrd<U>, U: PartialOrd<T> + ?Sized,

Returns true if item is contained in the range. Read more
Source§

fn is_empty(&self) -> bool
where T: PartialOrd,

🔬This is a nightly-only experimental API. (range_bounds_is_empty)
Returns true if the range contains no items. One-sided ranges (RangeFrom, etc) always return false. Read more

Auto Trait Implementations§

§

impl<T> Freeze for RangeFromExcluded<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for RangeFromExcluded<T>
where T: RefUnwindSafe,

§

impl<T> Send for RangeFromExcluded<T>
where T: Send,

§

impl<T> Sync for RangeFromExcluded<T>
where T: Sync,

§

impl<T> Unpin for RangeFromExcluded<T>
where T: Unpin,

§

impl<T> UnwindSafe for RangeFromExcluded<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<R, U> RangePartialOrd<U> for R
where R: AsRange, <R as AsRange>::Item: PartialOrd<U> + Measure<U>, U: PartialEnum,

Source§

fn range_partial_cmp<S>(&self, other: &S) -> Option<RangeOrdering>
where S: AsRange<Item = U>,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.