Struct more_ranges::RangeFromExclusive[][src]

pub struct RangeFromExclusive<Idx> {
    pub start: Idx,
}

A range only bounded exclusively below.

The RangeFromExclusive contains all values with x > start.

Note: Overflow in the Iterator implementation (when the contained data type reaches its numerical limit) is allowed to panic, wrap, or saturate. This behavior is defined by the implementation of the Step trait. For primitive integers, this follows the normal rules, and respects the overflow checks profile (panic in debug, wrap in release). Note also that overflow happens earlier than you might assume: the overflow happens in the call to next that yields the maximum value, as the range must be set to a state to yield the next value.

Example

RangeFromExclusives can be created directly, as follows:

use more_ranges::RangeFromExclusive;

let range = RangeFromExclusive {
    start: 1,
};

Fields

start: Idx

The lower bound of the range (exclusive).

Trait Implementations

impl<Idx: Clone> Clone for RangeFromExclusive<Idx>[src]

impl<Idx: Debug> Debug for RangeFromExclusive<Idx>[src]

impl<Idx: Eq> Eq for RangeFromExclusive<Idx>[src]

impl<Idx: Hash> Hash for RangeFromExclusive<Idx>[src]

impl<Idx: PartialEq> PartialEq<RangeFromExclusive<Idx>> for RangeFromExclusive<Idx>[src]

impl<T> RangeBounds<T> for RangeFromExclusive<T>[src]

impl<'a, T> RangeBounds<T> for RangeFromExclusive<&'a T>[src]

impl<Idx> StructuralEq for RangeFromExclusive<Idx>[src]

impl<Idx> StructuralPartialEq for RangeFromExclusive<Idx>[src]

Auto Trait Implementations

impl<Idx> Send for RangeFromExclusive<Idx> where
    Idx: Send
[src]

impl<Idx> Sync for RangeFromExclusive<Idx> where
    Idx: Sync
[src]

impl<Idx> Unpin for RangeFromExclusive<Idx> where
    Idx: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.