Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb556333

Browse files
committed
use import
1 parentf76a997 commitb556333

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

‎src/word.rs‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use core::cmp;
12+
use core::iter::Filter;
1213

1314
usecrate::tables::word::WordCat;
1415

@@ -929,18 +930,13 @@ fn unicode_word_ok(t: &(usize, &str)) -> bool {
929930
has_alphanumeric(&t.1)
930931
}
931932

932-
typeAsciiWordsIter<'a> =core::iter::Filter<
933+
typeAsciiWordsIter<'a> =Filter<
933934
core::iter::Map<AsciiWordBoundIter<'a>,fn((usize,&'astr)) ->&'astr>,
934935
fn(&&'astr) ->bool,
935936
>;
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>;
944940

945941
#[derive(Debug)]
946942
enumWordsIter<'a>{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp