|
9 | 9 | // except according to those terms. |
10 | 10 |
|
11 | 11 | use core::cmp; |
| 12 | +use core::iter::Filter; |
12 | 13 |
|
13 | 14 | usecrate::tables::word::WordCat; |
14 | 15 |
|
@@ -929,18 +930,13 @@ fn unicode_word_ok(t: &(usize, &str)) -> bool { |
929 | 930 | has_alphanumeric(&t.1) |
930 | 931 | } |
931 | 932 |
|
932 | | -typeAsciiWordsIter<'a> =core::iter::Filter< |
| 933 | +typeAsciiWordsIter<'a> =Filter< |
933 | 934 | core::iter::Map<AsciiWordBoundIter<'a>,fn((usize,&'astr)) ->&'astr>, |
934 | 935 | fn(&&'astr) ->bool, |
935 | 936 | >; |
936 | | - |
937 | | -typeUnicodeWordsIter<'a> = core::iter::Filter<UWordBounds<'a>,fn(&&'astr) ->bool>; |
938 | | - |
939 | | -typeAsciiIndicesIter<'a> = |
940 | | - core::iter::Filter<AsciiWordBoundIter<'a>,fn(&(usize,&'astr)) ->bool>; |
941 | | - |
942 | | -typeUnicodeIndicesIter<'a> = |
943 | | - core::iter::Filter<UWordBoundIndices<'a>,fn(&(usize,&'astr)) ->bool>; |
| 937 | +typeUnicodeWordsIter<'a> =Filter<UWordBounds<'a>,fn(&&'astr) ->bool>; |
| 938 | +typeAsciiIndicesIter<'a> =Filter<AsciiWordBoundIter<'a>,fn(&(usize,&'astr)) ->bool>; |
| 939 | +typeUnicodeIndicesIter<'a> =Filter<UWordBoundIndices<'a>,fn(&(usize,&'astr)) ->bool>; |
944 | 940 |
|
945 | 941 | #[derive(Debug)] |
946 | 942 | enumWordsIter<'a>{ |
|