pub type PartialResult<T, F, E> = Result<PartialSuccess<T, F>, E>;Expand description
A type that represents a result, where successful results can contain a failure.
Aliased Type§
pub enum PartialResult<T, F, E> {
Ok(PartialSuccess<T, F>),
Err(E),
}Variants§
Trait Implementations§
Source§impl<T, F, E> PartialResultExt<T, F, E> for PartialResult<T, F, E>
impl<T, F, E> PartialResultExt<T, F, E> for PartialResult<T, F, E>
Source§fn partial_success(value: T, failure: F) -> Self
fn partial_success(value: T, failure: F) -> Self
Creates a new
PartialResult<T, F, E> with the given value and failure.