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 copy 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<SpecialData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpecialData, <__D as Deserializer<'de>>::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
§fn from(data: Alpha) -> SpecialData
fn from(data: Alpha) -> SpecialData
Converts to this type from the input type.
§impl From<BetaMinus> for SpecialData
impl From<BetaMinus> for SpecialData
§fn from(data: BetaMinus) -> SpecialData
fn from(data: BetaMinus) -> SpecialData
Converts to this type from the input type.
§impl From<BetaPlus> for SpecialData
impl From<BetaPlus> for SpecialData
§fn from(data: BetaPlus) -> SpecialData
fn from(data: BetaPlus) -> SpecialData
Converts to this type from the input type.
§impl From<Electron> for SpecialData
impl From<Electron> for SpecialData
§fn from(data: Electron) -> SpecialData
fn from(data: Electron) -> SpecialData
Converts to this type from the input type.
§impl From<Gamma> for SpecialData
impl From<Gamma> for SpecialData
§fn from(data: Gamma) -> SpecialData
fn from(data: Gamma) -> SpecialData
Converts to this type from the input type.
§impl From<Xray> for SpecialData
impl From<Xray> for SpecialData
§fn from(data: Xray) -> SpecialData
fn from(data: Xray) -> SpecialData
Converts to this type from the input type.
§impl Serialize for SpecialData
impl Serialize for SpecialData
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.