pub enum PreparedStructuralModel {
Monochromatic(Arc<PreparedStructuralPhase>),
FixedSpectrum(Arc<PreparedStructuralSpectrum>),
}Expand description
One native built-in structural model, monochromatic or fixed-spectrum.
Variants§
Monochromatic(Arc<PreparedStructuralPhase>)
One monochromatic structural phase.
FixedSpectrum(Arc<PreparedStructuralSpectrum>)
One fixed-wavelength structural spectrum.
Implementations§
Source§impl PreparedStructuralModel
impl PreparedStructuralModel
Sourcepub fn monochromatic(phase: PreparedStructuralPhase) -> Self
pub fn monochromatic(phase: PreparedStructuralPhase) -> Self
Wrap one prepared monochromatic phase.
Sourcepub fn fixed_spectrum(spectrum: PreparedStructuralSpectrum) -> Self
pub fn fixed_spectrum(spectrum: PreparedStructuralSpectrum) -> Self
Wrap one prepared fixed-wavelength spectrum.
Sourcepub fn structural_parameter_count(&self) -> usize
pub fn structural_parameter_count(&self) -> usize
Return the structural parameter count for this phase model.
Trait Implementations§
Source§impl Clone for PreparedStructuralModel
impl Clone for PreparedStructuralModel
Source§fn clone(&self) -> PreparedStructuralModel
fn clone(&self) -> PreparedStructuralModel
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PreparedStructuralModel
impl !UnwindSafe for PreparedStructuralModel
impl Freeze for PreparedStructuralModel
impl Send for PreparedStructuralModel
impl Sync for PreparedStructuralModel
impl Unpin for PreparedStructuralModel
impl UnsafeUnpin for PreparedStructuralModel
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