pub struct WeekendPostingStrategy;Expand description
Strategy for weekend/holiday posting anomalies.
Trait Implementations§
Source§impl Default for WeekendPostingStrategy
impl Default for WeekendPostingStrategy
Source§impl InjectionStrategy for WeekendPostingStrategy
impl InjectionStrategy for WeekendPostingStrategy
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 WeekendPostingStrategy
impl RefUnwindSafe for WeekendPostingStrategy
impl Send for WeekendPostingStrategy
impl Sync for WeekendPostingStrategy
impl Unpin for WeekendPostingStrategy
impl UnwindSafe for WeekendPostingStrategy
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