pub struct MeshQuality {
pub quality_metrics: HashMap<String, QualityMetric>,
pub quality_assessment: QualityAssessment,
}Expand description
Mesh quality
Fields§
§quality_metrics: HashMap<String, QualityMetric>§quality_assessment: QualityAssessmentImplementations§
Source§impl MeshQuality
impl MeshQuality
pub fn new() -> Self
Sourcepub fn add_metric(&mut self, metric: QualityMetric)
pub fn add_metric(&mut self, metric: QualityMetric)
Register a quality metric under metric.metric_name.
Sourcepub fn get_metric(&self, name: &str) -> Option<&QualityMetric>
pub fn get_metric(&self, name: &str) -> Option<&QualityMetric>
Look up a registered quality metric by name.
Sourcepub fn list_metrics(&self) -> Vec<String>
pub fn list_metrics(&self) -> Vec<String>
List the names of all registered quality metrics.
Sourcepub fn quality_assessment(&self) -> &QualityAssessment
pub fn quality_assessment(&self) -> &QualityAssessment
Borrow the quality-assessment summary.
Auto Trait Implementations§
impl Freeze for MeshQuality
impl RefUnwindSafe for MeshQuality
impl Send for MeshQuality
impl Sync for MeshQuality
impl Unpin for MeshQuality
impl UnsafeUnpin for MeshQuality
impl UnwindSafe for MeshQuality
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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