pub struct Array<T: ?Sized, const N: usize>(pub T);Tuple Fields§
§0: TTrait Implementations§
source§impl<G: FullGenerate, const N: usize> FullGenerate for Array<G, N>
impl<G: FullGenerate, const N: usize> FullGenerate for Array<G, N>
source§impl<S: FullShrink, const N: usize> FullShrink for Array<S, N>
impl<S: FullShrink, const N: usize> FullShrink for Array<S, N>
source§impl<G: Generate + ?Sized, const N: usize> Generate for Array<G, N>
impl<G: Generate + ?Sized, const N: usize> Generate for Array<G, N>
type Item = [<G as Generate>::Item; N]
type Shrink = All<[<G as Generate>::Shrink; N]>
source§fn generate(&self, state: &mut State) -> Self::Shrink
fn generate(&self, state: &mut State) -> Self::Shrink
Primary method of this trait. It generates a
Shrink instance that will be able to produce values of type
Generate::Item and shrink itself.source§fn sampler(&self) -> Sampler<'_, Self>
fn sampler(&self) -> Sampler<'_, Self>
Provides a
Sampler that allows to configure sampling settings and generate samples.source§fn samples(&self, count: usize) -> Samples<'_, Self> ⓘ
fn samples(&self, count: usize) -> Samples<'_, Self> ⓘ
Generates
count random values the are progressively larger in size. For additional sampling settings, see Generate::sampler.source§fn sample(&self, size: f64) -> Self::Item
fn sample(&self, size: f64) -> Self::Item
Generates a random value of
size (0.0..=1.0). For additional sampling settings, see Generate::sampler.fn checker(&self) -> Checker<'_, Self>
fn checks<P: Prove, F: FnMut(&Self::Item) -> P>( &self, count: usize, check: F, ) -> Checks<'_, Self, F> ⓘ
fn check<P: Prove, F: FnMut(&Self::Item) -> P>( &self, count: usize, check: F, ) -> Result<(), Error<Self::Item, P>>
source§impl<G: IntoGenerate, const N: usize> IntoGenerate for Array<G, N>
impl<G: IntoGenerate, const N: usize> IntoGenerate for Array<G, N>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for Array<T, N>
impl<T, const N: usize> RefUnwindSafe for Array<T, N>where
T: RefUnwindSafe + ?Sized,
impl<T, const N: usize> Send for Array<T, N>
impl<T, const N: usize> Sync for Array<T, N>
impl<T, const N: usize> Unpin for Array<T, N>
impl<T, const N: usize> UnwindSafe for Array<T, N>where
T: UnwindSafe + ?Sized,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)