pub struct TransposedDigitsStrategy;Expand description
Strategy for transposed digits errors.
Trait Implementations§
Source§impl Default for TransposedDigitsStrategy
impl Default for TransposedDigitsStrategy
Source§impl InjectionStrategy for TransposedDigitsStrategy
impl InjectionStrategy for TransposedDigitsStrategy
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 TransposedDigitsStrategy
impl RefUnwindSafe for TransposedDigitsStrategy
impl Send for TransposedDigitsStrategy
impl Sync for TransposedDigitsStrategy
impl Unpin for TransposedDigitsStrategy
impl UnwindSafe for TransposedDigitsStrategy
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