pub struct DescriptionAnomalyStrategy {
pub vague_descriptions: Vec<String>,
}Expand description
Strategy for description/text anomalies.
Fields§
§vague_descriptions: Vec<String>Vague descriptions to use.
Trait Implementations§
Source§impl Default for DescriptionAnomalyStrategy
impl Default for DescriptionAnomalyStrategy
Source§impl InjectionStrategy for DescriptionAnomalyStrategy
impl InjectionStrategy for DescriptionAnomalyStrategy
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 DescriptionAnomalyStrategy
impl RefUnwindSafe for DescriptionAnomalyStrategy
impl Send for DescriptionAnomalyStrategy
impl Sync for DescriptionAnomalyStrategy
impl Unpin for DescriptionAnomalyStrategy
impl UnwindSafe for DescriptionAnomalyStrategy
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