Struct more_ranges::RangeFromExclusiveToInclusive[][src]

pub struct RangeFromExclusiveToInclusive<Idx> {
    pub start: Idx,
    pub end: Idx,
}

A range bounded exclusively below and inclusively above.

The RangeFromExclusiveToInclusive contains all values with x > start and x <= end. It is empty unless start < end.

Example

RangeFromExclusiveToInclusives can be created directly, as follows:

use more_ranges::RangeFromExclusiveToInclusive;

let range = RangeFromExclusiveToInclusive {
    start: 1,
    end: 4,
};

Fields

start: Idx

The lower bound of the range (exclusive).

end: Idx

The upper bound of the range (inclusive).

Trait Implementations

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

impl<Idx> Unpin for RangeFromExclusiveToInclusive<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.