pub struct ReversedAmountStrategy;Expand description
Strategy for reversed amount errors.
Trait Implementations§
Source§impl Default for ReversedAmountStrategy
impl Default for ReversedAmountStrategy
Source§impl InjectionStrategy for ReversedAmountStrategy
impl InjectionStrategy for ReversedAmountStrategy
Source§fn can_apply(&self, entry: &JournalEntry) -> bool
fn can_apply(&self, entry: &JournalEntry) -> bool
Whether this strategy can be applied to the given entry.
Source§fn apply<R: Rng>(
&self,
entry: &mut JournalEntry,
_anomaly_type: &AnomalyType,
rng: &mut R,
) -> InjectionResult
fn apply<R: Rng>( &self, entry: &mut JournalEntry, _anomaly_type: &AnomalyType, rng: &mut R, ) -> InjectionResult
Applies the strategy to modify an entry.
Auto Trait Implementations§
impl Freeze for ReversedAmountStrategy
impl RefUnwindSafe for ReversedAmountStrategy
impl Send for ReversedAmountStrategy
impl Sync for ReversedAmountStrategy
impl Unpin for ReversedAmountStrategy
impl UnwindSafe for ReversedAmountStrategy
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