pub struct BorrowedGeneratorTest<F, G, V> { /* private fields */ }

Implementations§

source§

impl<F, G, V> BorrowedGeneratorTest<F, G, V>

source

pub fn new(fun: F, gen: G) -> Self

Trait Implementations§

source§

impl<F: RefUnwindSafe + FnMut(&G::Output) -> Ret, G: ValueGenerator, Ret> Test for BorrowedGeneratorTest<F, G, G::Output>
where Ret: IntoTestResult, G::Output: Debug,

§

type Value = <G as ValueGenerator>::Output

The input value for the test case
source§

fn test<T: TestInput<Result<bool, PanicError>>>( &mut self, input: &mut T ) -> Result<bool, PanicError>

Execute one test with the given input
source§

fn generate_value<T: TestInput<Self::Value>>( &self, input: &mut T ) -> Self::Value

Generate a value for the given input. Read more
source§

fn shrink( &mut self, input: Vec<u8>, seed: Option<u64>, options: &Options ) -> Option<TestFailure<Self::Value>>

Shrink the input to a simpler form

Auto Trait Implementations§

§

impl<F, G, V> RefUnwindSafe for BorrowedGeneratorTest<F, G, V>

§

impl<F, G, V> Send for BorrowedGeneratorTest<F, G, V>
where F: Send, G: Send, V: Send,

§

impl<F, G, V> Sync for BorrowedGeneratorTest<F, G, V>
where F: Sync, G: Sync, V: Sync,

§

impl<F, G, V> Unpin for BorrowedGeneratorTest<F, G, V>
where F: Unpin, G: Unpin, V: Unpin,

§

impl<F, G, V> UnwindSafe for BorrowedGeneratorTest<F, G, V>
where F: UnwindSafe, G: UnwindSafe, V: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.