pub struct NumRange<T>(/* private fields */);Expand description
Range Primitive generator
Implementations§
Trait Implementations§
Source§impl<T: NumPrimitive> Generator for NumRange<T>
impl<T: NumPrimitive> Generator for NumRange<T>
Source§fn map<O, F>(self, f: F) -> Map<Self, F>
fn map<O, F>(self, f: F) -> Map<Self, F>
Map the output of a generator through a function Read more
Source§fn such_that<F>(self, f: F) -> SuchThat<Self, F>
fn such_that<F>(self, f: F) -> SuchThat<Self, F>
Filter the generated items such that only the item
that matches the predicate ‘f’ are returned. Read more
Source§fn and<G>(self, other: G) -> And<Self, G>where
Self: Sized,
fn and<G>(self, other: G) -> And<Self, G>where
Self: Sized,
Combine two arbitrary generators into one that generate tuple item of both generators,
transforming generator for A and generator for B into one generator of (A,B) Read more
Source§fn into_boxed(self) -> BoxGenerator<Self::Item>where
Self: Sized + 'static,
fn into_boxed(self) -> BoxGenerator<Self::Item>where
Self: Sized + 'static,
Box a generator into a monomorphic fixed-sized type, that is easier to handle
Auto Trait Implementations§
impl<T> Freeze for NumRange<T>where
T: Freeze,
impl<T> RefUnwindSafe for NumRange<T>where
T: RefUnwindSafe,
impl<T> Send for NumRange<T>where
T: Send,
impl<T> Sync for NumRange<T>where
T: Sync,
impl<T> Unpin for NumRange<T>where
T: Unpin,
impl<T> UnsafeUnpin for NumRange<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NumRange<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