pub struct RietveldInput {
pub pattern: PatternRecord,
pub instrument: ConstantWavelengthInstrument,
pub fixed_spectrum: Option<FixedWavelengthSpectrum>,
pub axial_geometry: Option<FcjGeometry>,
pub position_correction: MonochromaticPositionCorrection,
pub background: Option<BackgroundModel>,
pub phases: Vec<RietveldPhase>,
}Expand description
Observations, experiment state, and ordered structural phases.
Fields§
§pattern: PatternRecordObserved pattern and fixed supplied background.
instrument: ConstantWavelengthInstrumentMonochromatic constant-wavelength profile.
fixed_spectrum: Option<FixedWavelengthSpectrum>Optional fixed spectrum; absent means a monochromatic calculation.
axial_geometry: Option<FcjGeometry>Optional Finger–Cox–Jephcoat axial-divergence geometry.
position_correction: MonochromaticPositionCorrectionExplicit instrument/sample position correction.
background: Option<BackgroundModel>Optional differentiable background added to the pattern’s fixed values.
phases: Vec<RietveldPhase>Ordered non-empty built-in structural phases.
Implementations§
Source§impl RietveldInput
impl RietveldInput
Sourcepub fn new(
pattern: PatternRecord,
instrument: ConstantWavelengthInstrument,
axial_geometry: Option<FcjGeometry>,
position_correction: MonochromaticPositionCorrection,
phases: Vec<RietveldPhase>,
) -> Result<Self, RietveldError>
pub fn new( pattern: PatternRecord, instrument: ConstantWavelengthInstrument, axial_geometry: Option<FcjGeometry>, position_correction: MonochromaticPositionCorrection, phases: Vec<RietveldPhase>, ) -> Result<Self, RietveldError>
Validate one native monochromatic Rietveld calculation request.
§Errors
Returns RietveldError for invalid observations, experiment state,
phase state, or duplicate phase IDs.
Sourcepub fn new_fixed_spectrum(
pattern: PatternRecord,
instrument: ConstantWavelengthInstrument,
spectrum: FixedWavelengthSpectrum,
axial_geometry: Option<FcjGeometry>,
position_correction: MonochromaticPositionCorrection,
phases: Vec<RietveldPhase>,
) -> Result<Self, RietveldError>
pub fn new_fixed_spectrum( pattern: PatternRecord, instrument: ConstantWavelengthInstrument, spectrum: FixedWavelengthSpectrum, axial_geometry: Option<FcjGeometry>, position_correction: MonochromaticPositionCorrection, phases: Vec<RietveldPhase>, ) -> Result<Self, RietveldError>
Validate one native fixed-wavelength-spectrum Rietveld request.
The instrument wavelength must equal the spectrum’s first, reference component. Structural lattice/topology refinement remains restricted to monochromatic inputs.
§Errors
Returns RietveldError for invalid observations, spectrum,
experiment geometry, or structural phases.
Sourcepub fn new_with_background(
pattern: PatternRecord,
instrument: ConstantWavelengthInstrument,
axial_geometry: Option<FcjGeometry>,
position_correction: MonochromaticPositionCorrection,
background: BackgroundModel,
phases: Vec<RietveldPhase>,
) -> Result<Self, RietveldError>
pub fn new_with_background( pattern: PatternRecord, instrument: ConstantWavelengthInstrument, axial_geometry: Option<FcjGeometry>, position_correction: MonochromaticPositionCorrection, background: BackgroundModel, phases: Vec<RietveldPhase>, ) -> Result<Self, RietveldError>
Validate a request with an additional native analytical background.
§Errors
Returns RietveldError for invalid observations, experiment state,
background state, or phase state.
Sourcepub fn new_fixed_spectrum_with_background(
pattern: PatternRecord,
instrument: ConstantWavelengthInstrument,
spectrum: FixedWavelengthSpectrum,
axial_geometry: Option<FcjGeometry>,
position_correction: MonochromaticPositionCorrection,
background: BackgroundModel,
phases: Vec<RietveldPhase>,
) -> Result<Self, RietveldError>
pub fn new_fixed_spectrum_with_background( pattern: PatternRecord, instrument: ConstantWavelengthInstrument, spectrum: FixedWavelengthSpectrum, axial_geometry: Option<FcjGeometry>, position_correction: MonochromaticPositionCorrection, background: BackgroundModel, phases: Vec<RietveldPhase>, ) -> Result<Self, RietveldError>
Validate a fixed-spectrum request with an analytical background.
§Errors
Returns RietveldError for invalid observations, spectrum,
background, experiment geometry, or structural phases.
Sourcepub fn validate(&self) -> Result<(), RietveldError>
pub fn validate(&self) -> Result<(), RietveldError>
Revalidate an adapter-decoded complete calculation request.
§Errors
Returns RietveldError for invalid observations, experiment state,
background state, or phase state.
Trait Implementations§
Source§impl Clone for RietveldInput
impl Clone for RietveldInput
Source§fn clone(&self) -> RietveldInput
fn clone(&self) -> RietveldInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RietveldInput
impl Debug for RietveldInput
Source§impl PartialEq for RietveldInput
impl PartialEq for RietveldInput
impl StructuralPartialEq for RietveldInput
Auto Trait Implementations§
impl Freeze for RietveldInput
impl RefUnwindSafe for RietveldInput
impl Send for RietveldInput
impl Sync for RietveldInput
impl Unpin for RietveldInput
impl UnsafeUnpin for RietveldInput
impl UnwindSafe for RietveldInput
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.