Trait opendp::core::Metric

source ·
pub trait Metric: Default + Clone + PartialEq + Debug + Send + Sync {
    type Distance;
}
Expand description

A representation of the distance between two elements in a set.

§Proof Definition

A type Self has an implementation for Metric iff it can represent a metric for quantifying distances between values in a set.

Required Associated Types§

source

type Distance

§Proof Definition

Self::Distance is a type that represents distances in terms of a metric Self.

Object Safety§

This trait is not object safe.

Implementors§