#[non_exhaustive]pub enum ConstituentFractionDiagnostic {
SumNotOne {
set: EntityId,
sum: f64,
tolerance: f64,
},
PartiallyStated {
set: EntityId,
stated: Vec<EntityId>,
missing: Vec<EntityId>,
stated_sum: f64,
},
}Expand description
A constituent set whose stated fractions do not describe one whole.
A policy finding, not a schema violation: IFC4 ADD2 TC1 and IFC4X3 ADD2
declare no WHERE rule on IfcMaterialConstituentSet, and
IfcMaterialConstituent.Fraction is OPTIONAL, so a file producing this
diagnostic is valid. Only
MaterialView::constituent_fraction_diagnostic produces it, when a
caller asks; no accessor fails or normalises because of it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SumNotOne
Every constituent states a fraction, and their sum differs from 1 by more than the caller’s tolerance.
Fields
PartiallyStated
Some constituents state a fraction and others do not, so the set does not say how the whole divides.
Trait Implementations§
Source§impl Clone for ConstituentFractionDiagnostic
impl Clone for ConstituentFractionDiagnostic
Source§fn clone(&self) -> ConstituentFractionDiagnostic
fn clone(&self) -> ConstituentFractionDiagnostic
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 moreimpl StructuralPartialEq for ConstituentFractionDiagnostic
Auto Trait Implementations§
impl Freeze for ConstituentFractionDiagnostic
impl RefUnwindSafe for ConstituentFractionDiagnostic
impl Send for ConstituentFractionDiagnostic
impl Sync for ConstituentFractionDiagnostic
impl Unpin for ConstituentFractionDiagnostic
impl UnsafeUnpin for ConstituentFractionDiagnostic
impl UnwindSafe for ConstituentFractionDiagnostic
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