Trait runt::errors::RichVec

source ·
pub trait RichVec<T, E> {
    // Required method
    fn partition_results(self) -> (Vec<T>, Vec<E>);
}
Expand description

Simple trait to implement partitioning methon on vectors of results.

Required Methods§

source

fn partition_results(self) -> (Vec<T>, Vec<E>)

Separate a Vec containing both T and E into two seperate Vecs.

Implementations on Foreign Types§

source§

impl<T, E> RichVec<T, E> for Vec<Result<T, E>>where T: Debug, E: Debug,

source§

fn partition_results(self) -> (Vec<T>, Vec<E>)

Implementors§