[][src]Struct proptest::test_runner::MapFailurePersistence

pub struct MapFailurePersistence {
    pub map: BTreeMap<&'static str, BTreeSet<PersistedSeed>>,
}

Failure persistence option that loads and saves seeds in memory on the heap. This may be useful when accumulating test failures across multiple TestRunner instances for external reporting or batched persistence.

Fields

map: BTreeMap<&'static str, BTreeSet<PersistedSeed>>

Backing map, keyed by source_file.

Trait Implementations

impl FailurePersistence for MapFailurePersistence[src]

fn load_persisted_failures(
    &self,
    source_file: Option<&'static str>
) -> Vec<[u8; 16]>
[src]

Deprecated

Use load_persisted_failures2 instead. Read more

fn save_persisted_failure(
    &mut self,
    source_file: Option<&'static str>,
    seed: [u8; 16],
    shrunken_value: &dyn Debug
)
[src]

Deprecated

Use save_persisted_failures2 instead. Read more

impl Debug for MapFailurePersistence[src]

impl PartialEq<MapFailurePersistence> for MapFailurePersistence[src]

impl Clone for MapFailurePersistence[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for MapFailurePersistence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T