Type Alias opendp::error::Fallible

source ·
pub type Fallible<T> = Result<T, Error>;

Aliased Type§

enum Fallible<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<T> FailedDispatch for Fallible<T>

source§

fn failed_dispatch(type_: &str) -> Self

source§

impl<T> From<FfiResult<*mut T>> for Fallible<T>

source§

fn from(result: FfiResult<*mut T>) -> Self

Converts to this type from the input type.
source§

impl<TI: 'static, TO: 'static> IntoAnyFunctionFfiResultExt for Fallible<Function<TI, TO>>

source§

impl<DI: 'static + Domain, TO: 'static, MI: 'static + Metric, MO: 'static + Measure> IntoAnyMeasurementFfiResultExt for Fallible<Measurement<DI, TO, MI, MO>>
where MO::Distance: 'static, (DI, MI): MetricSpace,

source§

impl<DI: 'static + Domain, DO: 'static + Domain, MI: 'static + Metric, MO: 'static + Metric> IntoAnyTransformationFfiResultExt for Fallible<Transformation<DI, DO, MI, MO>>
where DO::Carrier: 'static, MO::Distance: 'static, (DI, MI): MetricSpace, (DO, MO): MetricSpace,

source§

impl<DI, TX, TO, MI, MO> Shr<Function<TX, TO>> for Fallible<Measurement<DI, TX, MI, MO>>
where DI: 'static + Domain, TX: 'static, TO: 'static, MI: 'static + Metric, MO: 'static + Measure, (DI, MI): MetricSpace,

§

type Output = Result<Measurement<DI, TO, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: Function<TX, TO>) -> Self::Output

Performs the >> operation. Read more
source§

impl<DI, DX, TO, MI, MX, MO> Shr<Measurement<DX, TO, MX, MO>> for Fallible<Transformation<DI, DX, MI, MX>>
where DI: 'static + Domain, DX: 'static + Domain, TO: 'static, MI: 'static + Metric, MX: 'static + Metric, MO: 'static + Measure, (DI, MI): MetricSpace, (DX, MX): MetricSpace,

§

type Output = Result<Measurement<DI, TO, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: Measurement<DX, TO, MX, MO>) -> Self::Output

Performs the >> operation. Read more
source§

impl<DI, DX, TO, MI, MX, MO> Shr<PartialMeasurement<DX, TO, MX, MO>> for Fallible<Transformation<DI, DX, MI, MX>>
where DI: 'static + Domain, DX: 'static + Domain, TO: 'static, MI: 'static + Metric, MX: 'static + Metric, MO: 'static + Measure, (DI, MI): MetricSpace, (DX, MX): MetricSpace,

§

type Output = Result<Measurement<DI, TO, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: PartialMeasurement<DX, TO, MX, MO>) -> Self::Output

Performs the >> operation. Read more
source§

impl<DI, DX, DO, MI, MX, MO> Shr<PartialTransformation<DX, DO, MX, MO>> for Fallible<Transformation<DI, DX, MI, MX>>
where DI: 'static + Domain, DX: 'static + Domain, DO: 'static + Domain, MI: 'static + Metric, MX: 'static + Metric, MO: 'static + Metric, (DI, MI): MetricSpace, (DX, MX): MetricSpace, (DO, MO): MetricSpace,

§

type Output = Result<Transformation<DI, DO, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: PartialTransformation<DX, DO, MX, MO>) -> Self::Output

Performs the >> operation. Read more
source§

impl<DI, DX, DO, MI, MO, MTI, MTO> Shr<Transformation<DX, DO, MTI, MTO>> for Fallible<Measurement<DI, DX::Carrier, MI, MO>>
where DI: 'static + Domain, DX: 'static + Domain, DO: 'static + Domain, MI: 'static + Metric, MO: 'static + Measure, MTI: 'static + Metric, MTO: 'static + Metric, (DI, MI): MetricSpace, (DX, MTI): MetricSpace, (DO, MTO): MetricSpace,

§

type Output = Result<Measurement<DI, <DO as Domain>::Carrier, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: Transformation<DX, DO, MTI, MTO>) -> Self::Output

Performs the >> operation. Read more
source§

impl<DI, DX, DO, MI, MX, MO> Shr<Transformation<DX, DO, MX, MO>> for Fallible<Transformation<DI, DX, MI, MX>>
where DI: 'static + Domain, DX: 'static + Domain, DO: 'static + Domain, MI: 'static + Metric, MX: 'static + Metric, MO: 'static + Metric, (DI, MI): MetricSpace, (DX, MX): MetricSpace, (DO, MO): MetricSpace,

§

type Output = Result<Transformation<DI, DO, MI, MO>, Error>

The resulting type after applying the >> operator.
source§

fn shr(self, rhs: Transformation<DX, DO, MX, MO>) -> Self::Output

Performs the >> operation. Read more