Expand description
Core concepts of OpenDP.
This module provides the central building blocks used throughout OpenDP:
- Measurement
- Transformation
- Domain
- Metric/Measure
- Function
- StabilityMap/PrivacyMap
Re-exports
pub use super::*;
Modules
Structs
- A randomized mechanism with certain privacy characteristics.
- A map evaluating the privacy of a
Measurement
. - A map evaluating the stability of a
Transformation
. - A data transformation with certain stability characteristics.
Enums
Traits
- A set which constrains the input or output of a
Function
. - Trait to convert Result
into FfiResult<*mut AnyMeasurement>. We can’t do this with From because there’s a blanket implementation of From for FfiResult. We can’t do this with a method on Result because it comes from another crate. So we need a separate trait. - Trait to convert Result
into FfiResult<*mut AnyTransformation>. We can’t do this with From because there’s a blanket implementation of From for FfiResult. We can’t do this with a method on Result because it comes from another crate. So we need a separate trait. - A representation of the distance between two distributions.
- A representation of the distance between two elements in a set.
Functions
- Internal function. Free the memory associated with
error
. - Internal function. Free the memory associated with
this
. - Internal function. Free the memory associated with
this
. - Internal function. Free the memory associated with
this
. - Eval the
function
witharg
. - Check the privacy relation of the
measurement
at the givend_in
,d_out
- Get the function from a measurement.
- Get the input (carrier) data type of
this
. - Get the input distance type of
measurement
. - Get the input domain from a
measurement
. - Get the input domain from a
measurement
. - Invoke the
measurement
witharg
. Returns a differentially private release. - Use the
measurement
to map a givend_in
tod_out
. - Get the output distance type of
measurement
. - Get the output domain from a
measurement
. - Invoke the
queryable
withquery
. Returns a differentially private release. - Get the query type of
queryable
. - Check the privacy relation of the
measurement
at the givend_in
,d_out
- Get the function from a transformation.
- Get the input (carrier) data type of
this
. - Get the input distance type of
transformation
. - Get the input domain from a
transformation
. - Get the input domain from a
transformation
. - Invoke the
transformation
witharg
. Returns a differentially private release. - Use the
transformation
to map a givend_in
tod_out
. - Get the output distance type of
transformation
. - Get the output domain from a
transformation
. - Get the output domain from a
transformation
.