fn bab(&self) -> Map<Matches<BabPattern>, fn(&str) -> Bab>
        {
            // https://www.reddit.com/r/rust/comments/31x7jj/returning_iterators_from_a_function/
            // helped me a lot here.
            fn parse(s: &str) -> Bab {
                s.parse().unwrap()
            }
            self.number.matches(BabPattern::all()).map(parse)
        }
/// Returns an iterator over all the `Bab` patterns contained in self.
Returns an iterator over all the `Bab` patterns contained in self.
Returns an iterator over all the ` Bab ` patterns contained in self .
fn bab(&self) -> Map<Matches<BabPattern>, fn(&str) -> Bab>
        {
            // https://www.reddit.com/r/rust/comments/31x7jj/returning_iterators_from_a_function/
            // helped me a lot here.
            fn parse(s: &str) -> Bab {
                s.parse().unwrap()
            }
            self.number.matches(BabPattern::all()).map(parse)
        }
fn bab ( & self ) -> Map < Matches < BabPattern > , fn ( & str ) -> Bab > { // https://www.reddit.com/r/rust/comments/31x7jj/returning_iterators_from_a_function/ // helped me a lot here. fn parse ( s : & str ) -> Bab { s . parse ( ) . unwrap ( ) } self . number . matches ( BabPattern :: all ( ) ) . map ( parse ) }
Returns an iterator over all the `Bab` patterns contained in self.
Returns an iterator over all the ` Bab ` patterns contained in self .
&self
&self