Type Definition opendp::error::Fallible

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

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<T: IntoAnyFunctionExt> IntoAnyFunctionFfiResultExt for Fallible<T>

source§

impl<T: IntoAnyMeasurementExt> IntoAnyMeasurementFfiResultExt for Fallible<T>

source§

impl<T: IntoAnyTransformationExt> IntoAnyTransformationFfiResultExt for Fallible<T>

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, 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