Trait Zip2

Source
pub trait Zip2<T1> {
    // Required method
    fn zip2<T2, T3>(
        self,
        other1: Result<T2, CError>,
        other2: Result<T3, CError>,
    ) -> Result<(T1, T2, T3), CError>;
}

Required Methods§

Source

fn zip2<T2, T3>( self, other1: Result<T2, CError>, other2: Result<T3, CError>, ) -> Result<(T1, T2, T3), CError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T1> Zip2<T1> for Result<T1, CError>

Source§

fn zip2<T2, T3>( self, other1: Result<T2, CError>, other2: Result<T3, CError>, ) -> Result<(T1, T2, T3), CError>

Implementors§