#[non_exhaustive]pub struct Report {
pub tolerance: f64,
pub warnings: Vec<Warning>,
pub rules: Vec<RuleReport>,
}Expand description
A successful validation result, which may contain topology violations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tolerance: f64Planar tolerance in input coordinate units.
warnings: Vec<Warning>Degenerate-part warnings in layer registration order.
rules: Vec<RuleReport>Rule results in rule registration order, independent of parallel scheduling.
The result for RuleId i is at index i.
Implementations§
Source§impl Report
impl Report
Sourcepub fn violation_count(&self) -> usize
pub fn violation_count(&self) -> usize
Count aggregated violations across all registered rules.
Sourcepub fn violations(&self) -> impl Iterator<Item = &Violation>
pub fn violations(&self) -> impl Iterator<Item = &Violation>
Iterate violations in rule order and then each rule’s deterministic order.
Sourcepub fn rule(&self, id: RuleId) -> Option<&RuleReport>
pub fn rule(&self, id: RuleId) -> Option<&RuleReport>
Return one rule’s result. IDs must originate from the topology that produced this report.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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