pub struct LindhardScharff { /* private fields */ }Expand description
Lindhard-Scharff model with optional per-element correction factors.
Implementations§
Source§impl LindhardScharff
impl LindhardScharff
Sourcepub fn with_correction(self, z2: u8, factor: f64) -> Self
pub fn with_correction(self, z2: u8, factor: f64) -> Self
Multiply the stopping in target element z2 by factor.
Trait Implementations§
Source§impl Clone for LindhardScharff
impl Clone for LindhardScharff
Source§fn clone(&self) -> LindhardScharff
fn clone(&self) -> LindhardScharff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LindhardScharff
impl Debug for LindhardScharff
Source§impl Default for LindhardScharff
impl Default for LindhardScharff
Source§fn default() -> LindhardScharff
fn default() -> LindhardScharff
Returns the “default value” for a type. Read more
Source§impl ElectronicStopping for LindhardScharff
impl ElectronicStopping for LindhardScharff
Source§fn stopping(
&self,
ion: &Ion,
target_z: u8,
energy_ev: f64,
) -> Result<f64, StoppingError>
fn stopping( &self, ion: &Ion, target_z: u8, energy_ev: f64, ) -> Result<f64, StoppingError>
Stopping cross section per atom of element
target_z, J m².Source§fn sqrt_energy_coefficient(&self, ion: &Ion, target_z: u8) -> Option<f64>
fn sqrt_energy_coefficient(&self, ion: &Ion, target_z: u8) -> Option<f64>
If this model is exactly
S(E) = c sqrt(E) for this ion and target
(the velocity-proportional Lindhard-Scharff form), return c in
J m² eV^(-1/2); None (the default) otherwise. Read moreSource§fn validity(&self, ion: &Ion) -> ValidityRange
fn validity(&self, ion: &Ion) -> ValidityRange
Advisory validity range for this ion.
Auto Trait Implementations§
impl Freeze for LindhardScharff
impl RefUnwindSafe for LindhardScharff
impl Send for LindhardScharff
impl Sync for LindhardScharff
impl Unpin for LindhardScharff
impl UnsafeUnpin for LindhardScharff
impl UnwindSafe for LindhardScharff
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more