Lines Matching refs:cloned
45 assert!(UnicodeSegmentation::graphemes(s, true).eq(g.iter().cloned())); in test_graphemes()
46 assert!(UnicodeSegmentation::graphemes(s, false).eq(g.iter().cloned())); in test_graphemes()
49 assert!(UnicodeSegmentation::graphemes(s, true).rev().eq(g.iter().rev().cloned())); in test_graphemes()
50 assert!(UnicodeSegmentation::graphemes(s, false).rev().eq(g.iter().rev().cloned())); in test_graphemes()
55 assert!(UnicodeSegmentation::graphemes(s, true).eq(gt.iter().cloned())); in test_graphemes()
56 assert!(UnicodeSegmentation::graphemes(s, false).eq(gf.iter().cloned())); in test_graphemes()
59 assert!(UnicodeSegmentation::graphemes(s, true).rev().eq(gt.iter().rev().cloned())); in test_graphemes()
60 assert!(UnicodeSegmentation::graphemes(s, false).rev().eq(gf.iter().rev().cloned())); in test_graphemes()
116 w.iter().cloned(), in test_words()
121 w.iter().rev().cloned(), in test_words()
126 for i in w.iter().cloned().map(|s| s.len()).scan(0, |t, n| { *t += n; Some(*t) }) { in test_words()
134 indices.iter().cloned(), in test_words()
139 indices.iter().rev().cloned(), in test_words()
160 w.iter().cloned(), in test_sentences()