pub struct ConstantCorrection(pub f64);Expand description
An energy-independent constant factor.
Tuple Fields§
§0: f64Trait Implementations§
Source§impl Clone for ConstantCorrection
impl Clone for ConstantCorrection
Source§fn clone(&self) -> ConstantCorrection
fn clone(&self) -> ConstantCorrection
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 CompoundCorrection for ConstantCorrection
impl CompoundCorrection for ConstantCorrection
Source§fn factor(&self, _: &Material, _: &Ion, _: f64) -> f64
fn factor(&self, _: &Material, _: &Ion, _: 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.impl Copy for ConstantCorrection
Auto Trait Implementations§
impl Freeze for ConstantCorrection
impl RefUnwindSafe for ConstantCorrection
impl Send for ConstantCorrection
impl Sync for ConstantCorrection
impl Unpin for ConstantCorrection
impl UnsafeUnpin for ConstantCorrection
impl UnwindSafe for ConstantCorrection
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