rust/src/test/auxiliary/cci_impl_lib.rs

12 lines
219 B
Rust
Raw Normal View History

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