Skip to main content

CompoundCorrection

Trait CompoundCorrection 

Source
pub trait CompoundCorrection {
    // Required method
    fn factor(&self, material: &Material, ion: &Ion, energy_ev: f64) -> f64;
}
Expand description

Per-compound correction factor applied to the Bragg sum.

Required Methods§

Source

fn factor(&self, material: &Material, ion: &Ion, energy_ev: f64) -> f64

Multiplicative factor at the given ion energy. Must be finite and non-negative (zero is allowed); bragg_cross_section_per_atom rejects anything else with StoppingError::InvalidParameter.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§