pub struct StructuralPhaseDefinition {Show 16 fields
pub cell: UnitCell,
pub space_group: SpaceGroup,
pub hkl: Vec<[i32; 3]>,
pub multiplicity: Vec<usize>,
pub fractional_xyz: Vec<[f64; 3]>,
pub occupancy: Vec<f64>,
pub u_iso_angstrom2: Vec<f64>,
pub anisotropic_mask: Vec<bool>,
pub u_aniso_cif_angstrom2: Vec<[f64; 6]>,
pub scattering_species: Vec<String>,
pub scattering_real_offset: Vec<f64>,
pub scattering_imag_offset: Vec<f64>,
pub scale: f64,
pub coordinate_tolerance: f64,
pub scattering_model: BuiltInScatteringModel,
pub correction_model: IntegratedIntensityCorrectionModel,
}Expand description
Owned crystallographic and scattering data for one structural phase.
Fields§
§cell: UnitCellDirect unit cell.
space_group: SpaceGroupValidated exact symmetry group.
hkl: Vec<[i32; 3]>Canonical Miller indices.
multiplicity: Vec<usize>Powder multiplicity for every reflection.
fractional_xyz: Vec<[f64; 3]>Asymmetric-unit fractional coordinates.
occupancy: Vec<f64>Asymmetric-site occupancies.
u_iso_angstrom2: Vec<f64>Asymmetric-site isotropic displacement in square ångströms.
anisotropic_mask: Vec<bool>True for asymmetric sites described by fixed CIF U tensors.
u_aniso_cif_angstrom2: Vec<[f64; 6]>CIF U tensors in component order 11,22,33,23,13,12.
scattering_species: Vec<String>Exact built-in scattering-table key for every asymmetric site.
scattering_real_offset: Vec<f64>Fixed real X-ray dispersion offset for every site, or empty when absent.
scattering_imag_offset: Vec<f64>Fixed imaginary X-ray dispersion offset for every site, or empty when absent.
scale: f64Structural phase scale.
coordinate_tolerance: f64Fixed symmetry-expansion deduplication tolerance.
scattering_model: BuiltInScatteringModelBuilt-in native scattering selection.
correction_model: IntegratedIntensityCorrectionModelIntegrated-intensity correction selection.
Implementations§
Source§impl StructuralPhaseDefinition
impl StructuralPhaseDefinition
Sourcepub fn validate(&self) -> Result<(), StructuralPatternError>
pub fn validate(&self) -> Result<(), StructuralPatternError>
Validate owned reflection, site, scattering, and offset data.
§Errors
Returns StructuralPatternError when array shapes disagree, offsets
are invalid, or a built-in scattering-table key is unknown.
Trait Implementations§
Source§impl Clone for StructuralPhaseDefinition
impl Clone for StructuralPhaseDefinition
Source§fn clone(&self) -> StructuralPhaseDefinition
fn clone(&self) -> StructuralPhaseDefinition
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 StructuralPhaseDefinition
impl Debug for StructuralPhaseDefinition
impl StructuralPartialEq for StructuralPhaseDefinition
Auto Trait Implementations§
impl Freeze for StructuralPhaseDefinition
impl RefUnwindSafe for StructuralPhaseDefinition
impl Send for StructuralPhaseDefinition
impl Sync for StructuralPhaseDefinition
impl Unpin for StructuralPhaseDefinition
impl UnsafeUnpin for StructuralPhaseDefinition
impl UnwindSafe for StructuralPhaseDefinition
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 more