Struct more_ranges::RangeFromExclusive [−][src]
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
RangeFromExclusive
s 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]
fn clone(&self) -> RangeFromExclusive<Idx>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<Idx: PartialEq> PartialEq<RangeFromExclusive<Idx>> for RangeFromExclusive<Idx>
[src]
fn eq(&self, other: &RangeFromExclusive<Idx>) -> bool
[src]
fn ne(&self, other: &RangeFromExclusive<Idx>) -> bool
[src]
impl<T> RangeBounds<T> for RangeFromExclusive<T>
[src]
fn start_bound(&self) -> Bound<&T>
[src]
fn end_bound(&self) -> Bound<&T>
[src]
pub fn assert_len(self, len: usize) -> Range<usize> where
Self: RangeBounds<usize>,
[src]
Self: RangeBounds<usize>,
pub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
1.35.0[src]
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
impl<'a, T> RangeBounds<T> for RangeFromExclusive<&'a T>
[src]
fn start_bound(&self) -> Bound<&T>
[src]
fn end_bound(&self) -> Bound<&T>
[src]
pub fn assert_len(self, len: usize) -> Range<usize> where
Self: RangeBounds<usize>,
[src]
Self: RangeBounds<usize>,
pub fn contains<U>(&self, item: &U) -> bool where
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
1.35.0[src]
T: PartialOrd<U>,
U: PartialOrd<T> + ?Sized,
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]
Idx: Send,
impl<Idx> Sync for RangeFromExclusive<Idx> where
Idx: Sync,
[src]
Idx: Sync,
impl<Idx> Unpin for RangeFromExclusive<Idx> where
Idx: Unpin,
[src]
Idx: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,