pub struct MerminFitSpec {
pub oscillators: usize,
pub weighting: MerminWeightingChoice,
pub relative_floor: Option<f64>,
}Expand description
[electron.materials.<name>.mermin_fit]: the options of the oscillator
fit of the mermin-melf model to this material’s optical ELF
(MerminFitOptions,
crate::electron::inelastic::fit_mermin_oscillators). Absent: exactly
MerminFitOptions::default. Only n_oscillators and weighting are
exposed; the starting point and the iteration cap keep their defaults.
Fields§
§oscillators: usizeNumber of oscillators, 1..=MAX_OSCILLATORS (16); default 3.
weighting: MerminWeightingChoice"relative" (default) or "uniform".
relative_floor: Option<f64>floor of the relative weighting, in (0, 1]; default 0.01. Not
allowed with "uniform".
Trait Implementations§
Source§impl Clone for MerminFitSpec
impl Clone for MerminFitSpec
Source§fn clone(&self) -> MerminFitSpec
fn clone(&self) -> MerminFitSpec
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 MerminFitSpec
impl Debug for MerminFitSpec
Source§impl<'de> Deserialize<'de> for MerminFitSpec
impl<'de> Deserialize<'de> for MerminFitSpec
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
Source§impl PartialEq for MerminFitSpec
impl PartialEq for MerminFitSpec
Source§impl Serialize for MerminFitSpec
impl Serialize for MerminFitSpec
impl StructuralPartialEq for MerminFitSpec
Auto Trait Implementations§
impl Freeze for MerminFitSpec
impl RefUnwindSafe for MerminFitSpec
impl Send for MerminFitSpec
impl Sync for MerminFitSpec
impl Unpin for MerminFitSpec
impl UnsafeUnpin for MerminFitSpec
impl UnwindSafe for MerminFitSpec
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