pub enum DoseSource {
Epa,
Doe,
Genii,
}Expand description
Dose pathway and source types (re-exported from nucleide-nuclei so
analytics call sites need one import).
Dose-factor evaluation source: the three parallel HNF-5636 evaluations.
PyNE source ids are 0 = EPA (default), 1 = DOE, 2 = GENII.
Variants§
Epa
EPA evaluation (PyNE source id 0, the default).
Doe
DOE evaluation (PyNE source id 1).
Genii
GENII evaluation (PyNE source id 2).
Implementations§
Source§impl DoseSource
impl DoseSource
Sourcepub fn parse(s: &str) -> Option<DoseSource>
pub fn parse(s: &str) -> Option<DoseSource>
Parse a source name (case-insensitive).
Sourcepub fn from_int(v: u8) -> Option<DoseSource>
pub fn from_int(v: u8) -> Option<DoseSource>
Inverse of DoseSource::to_int; anything else is None.
Trait Implementations§
Source§impl Clone for DoseSource
impl Clone for DoseSource
Source§fn clone(&self) -> DoseSource
fn clone(&self) -> DoseSource
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 DoseSource
Source§impl Debug for DoseSource
impl Debug for DoseSource
impl Eq for DoseSource
Source§impl Hash for DoseSource
impl Hash for DoseSource
Source§impl Ord for DoseSource
impl Ord for DoseSource
Source§fn cmp(&self, other: &DoseSource) -> Ordering
fn cmp(&self, other: &DoseSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DoseSource
impl PartialEq for DoseSource
Source§impl PartialOrd for DoseSource
impl PartialOrd for DoseSource
impl StructuralPartialEq for DoseSource
Auto Trait Implementations§
impl Freeze for DoseSource
impl RefUnwindSafe for DoseSource
impl Send for DoseSource
impl Sync for DoseSource
impl Unpin for DoseSource
impl UnsafeUnpin for DoseSource
impl UnwindSafe for DoseSource
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