We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 24fb724 + 89e424d commit 629f1b2Copy full SHA for 629f1b2
src/libcore/int-template.rs
@@ -38,6 +38,7 @@ pure fn is_negative(x: T) -> bool { x < 0 as T }
38
pure fn is_nonpositive(x: T) -> bool { x <= 0 as T }
39
pure fn is_nonnegative(x: T) -> bool { x >= 0 as T }
40
41
+#[inline(always)]
42
#[doc = "Iterate over the range [`lo`..`hi`)"]
43
fn range(lo: T, hi: T, it: fn(T) -> bool) {
44
let mut i = lo;
0 commit comments