rust/src/test/auxiliary/cci_impl_lib.rs

10 lines
172 B
Rust
Raw Normal View History

impl helpers for uint {
#[inline]
fn to(v: uint, f: fn(uint)) {
let i = self;
while i < v {
f(i);
i += 1u;
}
}
}