pub struct MapDiffSummary {Show 16 fields
pub base_vertex_count: u64,
pub candidate_vertex_count: u64,
pub compared_vertex_count: u64,
pub added_vertex_count: u64,
pub removed_vertex_count: u64,
pub changed_vertex_count: u64,
pub change_threshold_um: u64,
pub max_displacement_um: u64,
pub mean_displacement_um: u64,
pub p95_displacement_um: u64,
pub cell_count: u64,
pub geometry_hash_equal: bool,
pub topology_equal: bool,
pub source_identity_match: bool,
pub frame_identity_match: bool,
pub calibration_applied: bool,
}Expand description
Aggregate vertex, topology, and admission metrics for a map comparison.
Fields§
§base_vertex_count: u64Number of base-map vertices.
candidate_vertex_count: u64Number of candidate-map vertices.
compared_vertex_count: u64Number of vertices compared by stable index.
added_vertex_count: u64Candidate-only vertices implied by a larger candidate map.
removed_vertex_count: u64Base-only vertices implied by a larger base map.
changed_vertex_count: u64Compared vertices beyond the configured change threshold.
change_threshold_um: u64Displacement threshold in micrometres.
max_displacement_um: u64Maximum compared displacement in micrometres.
mean_displacement_um: u64Mean compared displacement in micrometres.
p95_displacement_um: u64P95 compared displacement in micrometres.
cell_count: u64Number of cells in the row-major heatmap.
geometry_hash_equal: boolWhether the checksums of the two map artifacts are equal.
topology_equal: boolWhether decoded triangle index arrays are equal.
source_identity_match: boolWhether both maps are bound to the same source checksum.
frame_identity_match: boolWhether both maps use the same coordinate frame.
calibration_applied: boolWhether a source-bound clock/frame calibration was applied.
Implementations§
Source§impl MapDiffSummary
impl MapDiffSummary
Sourcepub fn try_new(
base_vertex_count: u64,
candidate_vertex_count: u64,
compared_vertex_count: u64,
added_vertex_count: u64,
removed_vertex_count: u64,
changed_vertex_count: u64,
change_threshold_um: u64,
max_displacement_um: u64,
mean_displacement_um: u64,
p95_displacement_um: u64,
cell_count: u64,
geometry_hash_equal: bool,
topology_equal: bool,
source_identity_match: bool,
frame_identity_match: bool,
calibration_applied: bool,
) -> ViewerResult<Self>
pub fn try_new( base_vertex_count: u64, candidate_vertex_count: u64, compared_vertex_count: u64, added_vertex_count: u64, removed_vertex_count: u64, changed_vertex_count: u64, change_threshold_um: u64, max_displacement_um: u64, mean_displacement_um: u64, p95_displacement_um: u64, cell_count: u64, geometry_hash_equal: bool, topology_equal: bool, source_identity_match: bool, frame_identity_match: bool, calibration_applied: bool, ) -> ViewerResult<Self>
Creates and validates aggregate map-diff metrics.
Sourcepub fn validate(&self) -> ViewerResult<()>
pub fn validate(&self) -> ViewerResult<()>
Validates count, hash, percentile, and calibration invariants.
Trait Implementations§
Source§impl Clone for MapDiffSummary
impl Clone for MapDiffSummary
Source§fn clone(&self) -> MapDiffSummary
fn clone(&self) -> MapDiffSummary
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 MapDiffSummary
impl Debug for MapDiffSummary
Source§impl<'de> Deserialize<'de> for MapDiffSummary
impl<'de> Deserialize<'de> for MapDiffSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MapDiffSummary
impl PartialEq for MapDiffSummary
Source§fn eq(&self, other: &MapDiffSummary) -> bool
fn eq(&self, other: &MapDiffSummary) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MapDiffSummary
impl Serialize for MapDiffSummary
impl Eq for MapDiffSummary
impl StructuralPartialEq for MapDiffSummary
Auto Trait Implementations§
impl Freeze for MapDiffSummary
impl RefUnwindSafe for MapDiffSummary
impl Send for MapDiffSummary
impl Sync for MapDiffSummary
impl Unpin for MapDiffSummary
impl UnsafeUnpin for MapDiffSummary
impl UnwindSafe for MapDiffSummary
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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