pub struct MutationSuite {
pub strategies: Vec<(Box<dyn MutationStrategy>, f32)>,
}
Fields§
§strategies: Vec<(Box<dyn MutationStrategy>, f32)>
Implementations§
Source§impl MutationSuite
impl MutationSuite
pub fn new() -> Self
pub fn add_strategy<S: MutationStrategy + 'static>( &mut self, strategy: S, weight: f32, )
pub fn mutate(&self, field: &FractalField) -> FractalField
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MutationSuite
impl !RefUnwindSafe for MutationSuite
impl !Send for MutationSuite
impl !Sync for MutationSuite
impl Unpin for MutationSuite
impl !UnwindSafe for MutationSuite
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
Source§impl<T> Resonance for Twhere
T: Default + 'static,
impl<T> Resonance for Twhere
T: Default + 'static,
fn as_any(&self) -> &(dyn Any + 'static)
Source§fn resonance_score(&self) -> f64
fn resonance_score(&self) -> f64
Returns a scalar score representing intrinsic resonance.
This could be based on phase coherence, symmetry, entropy, etc.
Source§fn resonance_similarity(&self, _other: &dyn Resonance) -> f64
fn resonance_similarity(&self, _other: &dyn Resonance) -> f64
Compares resonance with another object.
Returns a similarity score in [0.0, 1.0], where 1.0 means perfect resonance.
Source§fn resonance_law(&self) -> ResonanceLaw
fn resonance_law(&self) -> ResonanceLaw
Classifies the resonance pattern or law governing this object.
Source§fn is_resonant_with(&self, other: &dyn Resonance) -> bool
fn is_resonant_with(&self, other: &dyn Resonance) -> bool
Returns true if resonance similarity exceeds a threshold.