Skip to main content

PartialResultExt

Trait PartialResultExt 

Source
pub trait PartialResultExt<T, F, E> {
    // Required method
    fn partial_success(value: T, failure: F) -> Self;
}
Expand description

A trait that extends PartialResult<T, F, E> with additional methods.

Required Methods§

Source

fn partial_success(value: T, failure: F) -> Self

Creates a new PartialResult<T, F, E> with the given value and failure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, F, E> PartialResultExt<T, F, E> for PartialResult<T, F, E>