File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -227,20 +227,23 @@ impl CharEq for char {
227227 #[ inline]
228228 fn matches ( & self , c : char ) -> bool { * self == c }
229229
230+ #[ inline]
230231 fn only_ascii ( & self ) -> bool { ( * self as uint ) < 128 }
231232}
232233
233234impl < ' a > CharEq for |char|: ' a -> bool {
234235 #[ inline]
235236 fn matches ( & self , c : char ) -> bool { ( * self ) ( c) }
236237
238+ #[ inline]
237239 fn only_ascii ( & self ) -> bool { false }
238240}
239241
240242impl CharEq for extern "Rust" fn ( char ) -> bool {
241243 #[ inline]
242244 fn matches ( & self , c : char ) -> bool { ( * self ) ( c) }
243245
246+ #[ inline]
244247 fn only_ascii ( & self ) -> bool { false }
245248}
246249
@@ -250,6 +253,7 @@ impl<'a, C: CharEq> CharEq for &'a [C] {
250253 self . iter ( ) . any ( |m| m. matches ( c) )
251254 }
252255
256+ #[ inline]
253257 fn only_ascii ( & self ) -> bool {
254258 self . iter ( ) . all ( |m| m. only_ascii ( ) )
255259 }
You can’t perform that action at this time.
0 commit comments