pub struct StoppingTable { /* private fields */ }Expand description
A validated user stopping table for one ion/target pair.
Implementations§
Source§impl StoppingTable
impl StoppingTable
Sourcepub fn from_toml_str(text: &str) -> Result<Self, StoppingError>
pub fn from_toml_str(text: &str) -> Result<Self, StoppingError>
Parse and validate a TOML table.
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, StoppingError>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, StoppingError>
Load from a TOML file.
Sourcepub fn provenance(&self) -> &str
pub fn provenance(&self) -> &str
The provenance string (to be copied into run metadata).
Sourcepub fn ion_mass_amu(&self) -> f64
pub fn ion_mass_amu(&self) -> f64
Projectile mass the table is for, u.
Sourcepub fn energy_range_ev(&self) -> (f64, f64)
pub fn energy_range_ev(&self) -> (f64, f64)
The tabulated energy range (min, max), eV.
Sourcepub fn covers_pair(&self, ion_z: u8, target_z: u8) -> bool
pub fn covers_pair(&self, ion_z: u8, target_z: u8) -> bool
Whether the table is for this projectile and target element (the projectile mass is checked at query time).
Trait Implementations§
Source§impl Clone for StoppingTable
impl Clone for StoppingTable
Source§fn clone(&self) -> StoppingTable
fn clone(&self) -> StoppingTable
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 StoppingTable
impl Debug for StoppingTable
Source§impl ElectronicStopping for StoppingTable
impl ElectronicStopping for StoppingTable
Source§impl PartialEq for StoppingTable
impl PartialEq for StoppingTable
impl StructuralPartialEq for StoppingTable
Auto Trait Implementations§
impl Freeze for StoppingTable
impl RefUnwindSafe for StoppingTable
impl Send for StoppingTable
impl Sync for StoppingTable
impl Unpin for StoppingTable
impl UnsafeUnpin for StoppingTable
impl UnwindSafe for StoppingTable
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