Struct 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 Clone for MapFailurePersistence

fn clone(&self) -> MapFailurePersistence

impl Debug for MapFailurePersistence

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for MapFailurePersistence

fn default() -> MapFailurePersistence

impl FailurePersistence for MapFailurePersistence

fn load_persisted_failures2(&self, source_file: Option<&'static str>) -> Vec<PersistedSeed>
fn save_persisted_failure2(&mut self, source_file: Option<&'static str>, seed: PersistedSeed, _shrunken_value: &dyn Debug)
fn box_clone(&self) -> Box<dyn FailurePersistence>
fn eq(&self, other: &dyn FailurePersistence) -> bool
fn as_any(&self) -> &dyn Any

impl PartialEq for MapFailurePersistence

fn eq(&self, other: &MapFailurePersistence) -> bool

impl StructuralPartialEq for MapFailurePersistence

Auto Trait Implementations

impl Freeze for MapFailurePersistence

impl RefUnwindSafe for MapFailurePersistence

impl Send for MapFailurePersistence

impl Sync for MapFailurePersistence

impl Unpin for MapFailurePersistence

impl UnsafeUnpin for MapFailurePersistence

impl UnwindSafe for MapFailurePersistence

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for MapFailurePersistence where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for MapFailurePersistence where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for MapFailurePersistence where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for MapFailurePersistence

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for MapFailurePersistence where T: ?Sized,

impl<T> ToOwned for MapFailurePersistence where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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

impl<V, T> VZip<V> for MapFailurePersistence where V: MultiLane<T>,

fn vzip(self) -> V