pub struct ArrayGenerator<G, T, const N: usize> { /* private fields */ }Expand description
Generator for fixed-size arrays [T; N]. Created by arrays().
Trait Implementations§
Source§impl<G: Generator<T> + Send + Sync, T, const N: usize> Generator<[T; N]> for ArrayGenerator<G, T, N>
impl<G: Generator<T> + Send + Sync, T, const N: usize> Generator<[T; N]> for ArrayGenerator<G, T, N>
Source§fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
Transform generated values using a function. Read more
Source§fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
Generate a value, then use it to choose or configure another generator. Read more
Auto Trait Implementations§
impl<G, T, const N: usize> Freeze for ArrayGenerator<G, T, N>where
G: Freeze,
impl<G, T, const N: usize> RefUnwindSafe for ArrayGenerator<G, T, N>where
G: RefUnwindSafe,
impl<G, T, const N: usize> Send for ArrayGenerator<G, T, N>where
G: Send,
impl<G, T, const N: usize> Sync for ArrayGenerator<G, T, N>where
G: Sync,
impl<G, T, const N: usize> Unpin for ArrayGenerator<G, T, N>where
G: Unpin,
impl<G, T, const N: usize> UnsafeUnpin for ArrayGenerator<G, T, N>where
G: UnsafeUnpin,
impl<G, T, const N: usize> UnwindSafe for ArrayGenerator<G, T, N>where
G: 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