2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-10-14 23:05:01 -07:00
|
|
|
#![crate_name="cci_no_inline_lib"]
|
2012-03-13 10:55:45 -04:00
|
|
|
|
2014-03-05 15:28:08 -08:00
|
|
|
|
2012-03-01 10:36:22 -08:00
|
|
|
// same as cci_iter_lib, more-or-less, but not marked inline
|
2015-01-02 17:32:54 -05:00
|
|
|
pub fn iter<F>(v: Vec<uint> , mut f: F) where F: FnMut(uint) {
|
2015-03-03 10:42:26 +02:00
|
|
|
let mut i = 0;
|
2013-05-14 18:52:12 +09:00
|
|
|
let n = v.len();
|
2012-03-01 10:36:22 -08:00
|
|
|
while i < n {
|
2014-10-14 23:05:01 -07:00
|
|
|
f(v[i]);
|
2015-03-03 10:42:26 +02:00
|
|
|
i += 1;
|
2012-03-01 10:36:22 -08:00
|
|
|
}
|
|
|
|
}
|