pub struct ElasticChoice {
pub model: ElasticModelChoice,
pub potential: PotentialChoice,
pub exchange: bool,
pub correlation_polarization: BTreeMap<u8, CorrelationPolarization>,
}Expand description
The elastic choices after validation.
Fields§
§model: ElasticModelChoiceThe elastic model.
potential: PotentialChoiceThe atomic potential.
exchange: boolFurness-McCarthy exchange on or off.
correlation_polarization: BTreeMap<u8, CorrelationPolarization>Per-element correlation-polarization inputs (empty when off).
Implementations§
Source§impl ElasticChoice
impl ElasticChoice
Sourcepub fn corrections(&self, z: u8) -> Corrections
pub fn corrections(&self, z: u8) -> Corrections
The corrections for element z.
Sourcepub fn any_correction(&self) -> bool
pub fn any_correction(&self) -> bool
Whether any correction is on.
Sourcepub fn corrections_description(&self) -> String
pub fn corrections_description(&self) -> String
One line naming the corrections and their inputs, appended to the potential description of every element’s table (empty when none is on).
Trait Implementations§
Source§impl Clone for ElasticChoice
impl Clone for ElasticChoice
Source§fn clone(&self) -> ElasticChoice
fn clone(&self) -> ElasticChoice
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 moreSource§impl Debug for ElasticChoice
impl Debug for ElasticChoice
Source§impl PartialEq for ElasticChoice
impl PartialEq for ElasticChoice
impl StructuralPartialEq for ElasticChoice
Auto Trait Implementations§
impl Freeze for ElasticChoice
impl RefUnwindSafe for ElasticChoice
impl Send for ElasticChoice
impl Sync for ElasticChoice
impl Unpin for ElasticChoice
impl UnsafeUnpin for ElasticChoice
impl UnwindSafe for ElasticChoice
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