pub struct Subshell(/* private fields */);Expand description
One atomic subshell, identified by its ENDF subshell designator
(1 = K (1s1/2), 2 = L1 (2s1/2), 3 = L2 (2p1/2), 4 = L3 (2p3/2), …,
39 = Q3 (7p3/2); see Subshell::label and Subshell::orbital).
Serialized as the bare designator number.
Implementations§
Source§impl Subshell
impl Subshell
Sourcepub const MAX_DESIGNATOR: u8 = 39
pub const MAX_DESIGNATOR: u8 = 39
Largest designator defined by the ENDF-6 manual (Q3).
Sourcepub fn new(designator: u8) -> Result<Self, ElectronDataError>
pub fn new(designator: u8) -> Result<Self, ElectronDataError>
A subshell from its ENDF designator, 1..=39.
Sourcepub fn from_label(label: &str) -> Option<Self>
pub fn from_label(label: &str) -> Option<Self>
Look a subshell up by its label ("K", "L1", …, "Q3").
Sourcepub fn designator(self) -> u8
pub fn designator(self) -> u8
The ENDF designator.
Trait Implementations§
impl Copy for Subshell
Source§impl<'de> Deserialize<'de> for Subshell
impl<'de> Deserialize<'de> for Subshell
Source§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 Eq for Subshell
Source§impl Ord for Subshell
impl Ord for Subshell
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
Source§impl PartialOrd for Subshell
impl PartialOrd for Subshell
impl StructuralPartialEq for Subshell
Auto Trait Implementations§
impl Freeze for Subshell
impl RefUnwindSafe for Subshell
impl Send for Subshell
impl Sync for Subshell
impl Unpin for Subshell
impl UnsafeUnpin for Subshell
impl UnwindSafe for Subshell
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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