pub struct IntGenerator<T> { /* private fields */ }Expand description
Generator for integer types with optional range constraints
Implementations§
Source§impl<T> IntGenerator<T>where
T: Copy + PartialOrd,
impl<T> IntGenerator<T>where
T: Copy + PartialOrd,
Source§impl IntGenerator<i8>
impl IntGenerator<i8>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<i16>
impl IntGenerator<i16>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<i32>
impl IntGenerator<i32>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<i64>
impl IntGenerator<i64>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<i128>
impl IntGenerator<i128>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<isize>
impl IntGenerator<isize>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<u8>
impl IntGenerator<u8>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<u16>
impl IntGenerator<u16>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<u32>
impl IntGenerator<u32>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<u64>
impl IntGenerator<u64>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<u128>
impl IntGenerator<u128>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Source§impl IntGenerator<usize>
impl IntGenerator<usize>
Sourcepub fn full_range() -> Self
pub fn full_range() -> Self
Create a generator for the full range of the type
Trait Implementations§
Source§impl<T: Clone> Clone for IntGenerator<T>
impl<T: Clone> Clone for IntGenerator<T>
Source§fn clone(&self) -> IntGenerator<T>
fn clone(&self) -> IntGenerator<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for IntGenerator<T>
impl<T: Debug> Debug for IntGenerator<T>
Auto Trait Implementations§
impl<T> Freeze for IntGenerator<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntGenerator<T>where
T: RefUnwindSafe,
impl<T> Send for IntGenerator<T>where
T: Send,
impl<T> Sync for IntGenerator<T>where
T: Sync,
impl<T> Unpin for IntGenerator<T>where
T: Unpin,
impl<T> UnwindSafe for IntGenerator<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