pub fn validate_instance_fields(
magnitude_percent: f32,
effect_duration_bursts: u16,
graded: bool,
full_scale_potential: Option<f32>,
) -> Result<(), ModulatorValidationError>Expand description
Check instance fields that do not depend on the rest of the genome.
magnitude_percent must be finite and >= -100 so every multiplicative
factor stays non-negative. effect_duration_bursts must be at least 1.
Graded instances require full_scale_potential > 0.