File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8641c95221786d13c5e91f1d78c9d0158c376438
2
+ refs/heads/master: 6e8cf935db93b92638b36dbb787f7c6e11be65ad
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -1761,6 +1761,12 @@ impl extensions for str {
1761
1761
#[ doc = "Returns true if one string contains another" ]
1762
1762
#[ inline]
1763
1763
fn contains ( needle : str ) -> bool { contains ( self , needle) }
1764
+ #[ doc = "Iterate over the bytes in a string" ]
1765
+ #[ inline]
1766
+ fn each ( it : fn ( u8 ) -> bool ) { each ( self , it) }
1767
+ #[ doc = "Iterate over the chars in a string" ]
1768
+ #[ inline]
1769
+ fn each_char ( it : fn ( char ) -> bool ) { each_char ( self , it) }
1764
1770
#[ doc = "Returns true if one string ends with another" ]
1765
1771
#[ inline]
1766
1772
fn ends_with ( needle : str ) -> bool { ends_with ( self , needle) }
You can’t perform that action at this time.
0 commit comments