fn map_fallible<D2, E, L>(
        &self,
        name: &str,
        mut logic: L,
    ) -> (Collection<G, D2, R>, Collection<G, E, R>)
    where
        D2: Data,
        E: Data,
        L: FnMut(D1) -> Result<D2, E> + 'static,
    {
        self.flat_map_fallible(name, move |record| Some(logic(record)))
    }
/// Like [`Collection::map`], but `logic` is allowed to fail. The first
/// returned collection will contain successful applications of `logic`,
/// while the second returned collection will contain the failed
/// applications.
Like [`Collection::map`], but `logic` is allowed to fail. The first
returned collection will contain successful applications of `logic`,
while the second returned collection will contain the failed
applications.
Like [ ` Collection :: map ` ] but ` logic ` is allowed to fail . The first returned collection will contain successful applications of ` logic ` while the second returned collection will contain the failed applications .
fn map_fallible<D2, E, L>(
        &self,
        name: &str,
        mut logic: L,
    ) -> (Collection<G, D2, R>, Collection<G, E, R>)
    where
        D2: Data,
        E: Data,
        L: FnMut(D1) -> Result<D2, E> + 'static,
    {
        self.flat_map_fallible(name, move |record| Some(logic(record)))
    }
fn map_fallible < D2 , E , L > ( & self , name : & str , mut logic : L , ) -> ( Collection < G , D2 , R > , Collection < G , E , R > ) where D2 : Data , E : Data , L : FnMut ( D1 ) -> Result < D2 , E > + ' static , { self . flat_map_fallible ( name , move | record | Some ( logic ( record ) ) ) }
Like [`Collection::map`], but `logic` is allowed to fail.
Like [ ` Collection :: map ` ] but ` logic ` is allowed to fail .
&self
name
&str
logic
L
&self
name
&str
logic
L