pub struct Correction<M> { /* private fields */ }Expand description
An ElectronicStopping model multiplied by a fitted CorrectionFit.
For the fitted ion and target element and an energy inside the fitted span
the base value is multiplied by g(E); in every other case the base model
is returned unchanged.
Implementations§
Source§impl<M: ElectronicStopping> Correction<M>
impl<M: ElectronicStopping> Correction<M>
Sourcepub fn new(base: M, fit: CorrectionFit) -> Self
pub fn new(base: M, fit: CorrectionFit) -> Self
Wrap base with fit.
Sourcepub fn fit(&self) -> &CorrectionFit
pub fn fit(&self) -> &CorrectionFit
The fit.
Trait Implementations§
Source§impl<M: Clone> Clone for Correction<M>
impl<M: Clone> Clone for Correction<M>
Source§fn clone(&self) -> Correction<M>
fn clone(&self) -> Correction<M>
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<M: Debug> Debug for Correction<M>
impl<M: Debug> Debug for Correction<M>
Source§impl<M: ElectronicStopping> ElectronicStopping for Correction<M>
impl<M: ElectronicStopping> ElectronicStopping for Correction<M>
Auto Trait Implementations§
impl<M> Freeze for Correction<M>where
M: Freeze,
impl<M> RefUnwindSafe for Correction<M>where
M: RefUnwindSafe,
impl<M> Send for Correction<M>where
M: Send,
impl<M> Sync for Correction<M>where
M: Sync,
impl<M> Unpin for Correction<M>where
M: Unpin,
impl<M> UnsafeUnpin for Correction<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Correction<M>where
M: UnwindSafe,
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