pub enum GridCoverage {
Below,
Within,
Above,
}Expand description
Where an energy lies against the energy grid of one table, as reported to
ElectronTally::table_lookup.
The grid is the table’s own CrossSectionTable::energy_ev, from its
first value E_min to its last E_max. Inside [E_min, E_max] the rate
and the inverse CDF are interpolated between rows (an energy equal to an
endpoint reads that row exactly); outside it they are the endpoint row’s,
held constant (module docs, “Free flight”). This enum says which of the
two happened; it measures how often that continuation is used, not
whether it is accurate.
Variants§
Below
E < E_min: the first row’s values were used.
Within
E_min <= E <= E_max (both endpoints included).
Above
E > E_max: the last row’s values were used.
Implementations§
Source§impl GridCoverage
impl GridCoverage
Sourcepub fn of(table: &CrossSectionTable, energy_ev: f64) -> Self
pub fn of(table: &CrossSectionTable, energy_ev: f64) -> Self
Where energy_ev lies against the grid of table.
Trait Implementations§
Source§impl Clone for GridCoverage
impl Clone for GridCoverage
Source§fn clone(&self) -> GridCoverage
fn clone(&self) -> GridCoverage
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 moreimpl Copy for GridCoverage
Source§impl Debug for GridCoverage
impl Debug for GridCoverage
impl Eq for GridCoverage
Source§impl PartialEq for GridCoverage
impl PartialEq for GridCoverage
Source§impl Serialize for GridCoverage
impl Serialize for GridCoverage
impl StructuralPartialEq for GridCoverage
Auto Trait Implementations§
impl Freeze for GridCoverage
impl RefUnwindSafe for GridCoverage
impl Send for GridCoverage
impl Sync for GridCoverage
impl Unpin for GridCoverage
impl UnsafeUnpin for GridCoverage
impl UnwindSafe for GridCoverage
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