Enum SpecialData
#[repr(C)]pub enum SpecialData {
None,
Alpha(Alpha),
BetaPlus(BetaPlus),
BetaMinus(BetaMinus),
Gamma(Gamma),
Electron(Electron),
Xray(Xray),
}
Expand description
Collection of specialised data fields under one type
Every rad_type
request to the IAEA chart of nuclides returns a set of CSV
data with ~25 common columns, along with up to 10 that are unique to the
type of decay radiation.
For simplicity any unique fields are collected as variant under the single type SpecialData.
No matter what the request, the user will always get the same
Record no matter the radiation type with all the common
information and expected functionality. The special_data
field of a
Record then contains any information specific to the
radiation type requested.
Variants§
None
Alpha(Alpha)
BetaPlus(BetaPlus)
BetaMinus(BetaMinus)
Gamma(Gamma)
Electron(Electron)
Xray(Xray)
Trait Implementations§
§impl Clone for SpecialData
impl Clone for SpecialData
§fn clone(&self) -> SpecialData
fn clone(&self) -> SpecialData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SpecialData
impl Debug for SpecialData
§impl Default for SpecialData
impl Default for SpecialData
§fn default() -> SpecialData
fn default() -> SpecialData
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SpecialData
impl<'de> Deserialize<'de> for SpecialData
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for SpecialData
impl Display for SpecialData
§impl From<Alpha> for SpecialData
impl From<Alpha> for SpecialData
§impl From<BetaMinus> for SpecialData
impl From<BetaMinus> for SpecialData
§impl From<BetaPlus> for SpecialData
impl From<BetaPlus> for SpecialData
§impl From<Electron> for SpecialData
impl From<Electron> for SpecialData
§impl From<Gamma> for SpecialData
impl From<Gamma> for SpecialData
§impl From<Xray> for SpecialData
impl From<Xray> for SpecialData
§impl Serialize for SpecialData
impl Serialize for SpecialData
Auto Trait Implementations§
impl Freeze for SpecialData
impl RefUnwindSafe for SpecialData
impl Send for SpecialData
impl Sync for SpecialData
impl Unpin for SpecialData
impl UnwindSafe for SpecialData
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
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