/dports/lang/rust/rustc-1.58.1-src/library/core/tests/iter/adapters/ |
H A D | step_by.rs | 6 let mut it = (0..).step_by(1).take(3); in test_iterator_step_by() 12 let mut it = (0..).step_by(3).take(4); in test_iterator_step_by() 19 let mut it = (0..3).step_by(1); in test_iterator_step_by() 25 let mut it = (0..11).step_by(3); in test_iterator_step_by() 35 let mut it = (0..16).step_by(5); in test_iterator_step_by_nth() 42 let it = (0..18).step_by(5); in test_iterator_step_by_nth() 78 (&mut it).step_by(n).nth(n); in test_iterator_step_by_nth_overflow() 99 let mut it = (0..).step_by(10); in test_iterator_step_by_nth_try_fold() 130 let it = || (0..18).step_by(5); in test_iterator_step_by_nth_back() 160 let mut it = (0..).step_by(0); in test_iterator_step_by_zero() [all …]
|
H A D | cycle.rs | 6 let it = (0..).step_by(1).take(cycle_len).cycle(); in test_cycle() 12 let mut it = (0..).step_by(1).take(0).cycle(); in test_cycle()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/tests/ui/ |
H A D | iterator_step_by_zero.stderr | 1 error: `Iterator::step_by(0)` will panic at runtime 4 LL | let _ = vec!["A", "B", "B"].iter().step_by(0); 9 error: `Iterator::step_by(0)` will panic at runtime 12 LL | let _ = "XXX".chars().step_by(0); 15 error: `Iterator::step_by(0)` will panic at runtime 18 LL | let _ = (0..1).step_by(0); 21 error: `Iterator::step_by(0)` will panic at runtime 24 LL | let _ = (1..).step_by(0); 30 LL | let _ = (1..=2).step_by(0); 36 LL | let _ = x.step_by(0); [all …]
|
H A D | iterator_step_by_zero.rs | 3 let _ = vec!["A", "B", "B"].iter().step_by(0); in main() 4 let _ = "XXX".chars().step_by(0); in main() 5 let _ = (0..1).step_by(0); in main() 9 y.step_by(0); in main() 12 let _ = (0..1).step_by(1); in main() 14 let _ = (1..).step_by(0); in main() 15 let _ = (1..=2).step_by(0); in main() 18 let _ = x.step_by(0); in main() 22 let _ = v1.iter().step_by(2 / 3); in main() 27 fn step_by(&self, _: u32) {} in step_by() method
|
/dports/lang/rust/rustc-1.58.1-src/library/core/tests/iter/ |
H A D | range.rs | 269 assert_eq!((0..20).step_by(5).collect::<Vec<isize>>(), [0, 5, 10, 15]); in test_range_step() 272 assert_eq!((200..255).step_by(50).collect::<Vec<u8>>(), [200, 250]); in test_range_step() 273 assert_eq!((200..-5).step_by(1).collect::<Vec<isize>>(), []); in test_range_step() 274 assert_eq!((200..200).step_by(1).collect::<Vec<isize>>(), []); in test_range_step() 276 assert_eq!((0..20).step_by(1).size_hint(), (20, Some(20))); in test_range_step() 277 assert_eq!((0..20).step_by(21).size_hint(), (1, Some(1))); in test_range_step() 278 assert_eq!((0..20).step_by(5).size_hint(), (4, Some(4))); in test_range_step() 279 assert_eq!((1..21).rev().step_by(5).size_hint(), (4, Some(4))); in test_range_step() 280 assert_eq!((1..21).rev().step_by(6).size_hint(), (4, Some(4))); in test_range_step() 281 assert_eq!((20..-5).step_by(1).size_hint(), (0, Some(0))); in test_range_step() [all …]
|
/dports/graphics/librsvg2-rust/librsvg-2.52.8/vendor/png/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/png-0.15.0/src/ |
H A D | utils.rs | 24 (0..8).step_by(bit_depth.into()) in unpack_bits() 28 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 36 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 37 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 54 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 55 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 153 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 191 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/graphics/rx/rx-0.4.0/cargo-crates/png-0.15.0/src/ |
H A D | utils.rs | 24 (0..8).step_by(bit_depth.into()) in unpack_bits() 28 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 36 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 37 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 54 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 55 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 153 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 191 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/multimedia/rav1e/rav1e-0.5.1/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/misc/broot/broot-1.7.0/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/png-0.17.1/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/png-0.15.2/src/ |
H A D | utils.rs | 29 (0..8).step_by(bit_depth.into()) in unpack_bits() 33 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 46 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 47 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 69 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 70 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 168 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 206 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/sysutils/czkawka/czkawka-3.3.1/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/graphics/viu/viu-1.1/cargo-crates/png-0.16.7/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/games/abstreet/abstreet-0.2.9-49-g74aca40c0/cargo-crates/png-0.16.3/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/sysutils/onefetch/onefetch-2.10.2/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/www/zola/zola-0.15.2/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/x11/alacritty/alacritty-0.9.0/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) in unpack_bits() 34 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 49 .step_by(channels); in expand_trns_line() 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); in expand_trns_line() 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); in expand_trns_line16() 171 .step_by(bits_pp) in subbyte_pixels() 215 (start..stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/png/src/ |
H A D | utils.rs | 29 (0..8).step_by(bit_depth.into()) in unpack_bits() 33 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 46 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 47 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 69 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 70 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 168 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 206 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/png-0.15.3/src/ |
H A D | utils.rs | 29 (0..8).step_by(bit_depth.into()) in unpack_bits() 33 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 46 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 47 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 69 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 70 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 168 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 206 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/audio/spotify-tui/spotify-tui-0.25.0/cargo-crates/png-0.16.8/src/ |
H A D | utils.rs | 31 (0..8).step_by(bit_depth.into()) 34 let j = (0..=buf.len() - channels).rev().step_by(channels); 49 .step_by(channels); 50 let j = (0..=buf.len() - (channels + 1)).rev().step_by(channels + 1); 72 let i = (0..=buf.len() / (c2 + 2) * c2 - c2).rev().step_by(c2); 73 let j = (0..=buf.len() - (c2 + 2)).rev().step_by(c2 + 2); 171 .step_by(bits_pp) 215 (start..stop).step_by(bits_pp * samp_mul)
|
/dports/graphics/viu/viu-1.1/cargo-crates/png-0.15.3/src/ |
H A D | utils.rs | 29 (0..8).step_by(bit_depth.into()) in unpack_bits() 33 let j = (0..=buf.len() - channels).rev().step_by(channels); in unpack_bits() 46 let i = (0..=buf.len() / (channels+1) * channels - channels).rev().step_by(channels); in expand_trns_line() 47 let j = (0..=buf.len() - (channels+1)).rev().step_by(channels+1); in expand_trns_line() 69 let i = (0..=buf.len() / (c2+2) * c2 - c2).rev().step_by(c2); in expand_trns_line16() 70 let j = (0..=buf.len() - (c2+2)).rev().step_by(c2+2); in expand_trns_line16() 168 (0..scanline.len() * 8).step_by(bits_pp).map(move |bit_idx| { in subbyte_pixels() 206 (start .. stop).step_by(bits_pp * samp_mul) in expand_adam7_bits()
|
/dports/devel/stylua/StyLua-0.11.0/cargo-crates/rayon-1.5.1/tests/ |
H A D | producer_split_at.rs | 256 fn step_by() { in step_by() function 257 let v: Vec<_> = (0..10).step_by(2).collect(); in step_by() 258 check(&v, || (0..10).into_par_iter().step_by(2)) in step_by() 263 let v: Vec<_> = (0..10).step_by(3).collect(); in step_by_unaligned() 264 check(&v, || (0..10).into_par_iter().step_by(3)) in step_by_unaligned()
|
/dports/multimedia/librav1e/rav1e-0.5.1/cargo-crates/rayon-1.5.1/tests/ |
H A D | producer_split_at.rs | 256 fn step_by() { in step_by() function 257 let v: Vec<_> = (0..10).step_by(2).collect(); in step_by() 258 check(&v, || (0..10).into_par_iter().step_by(2)) in step_by() 263 let v: Vec<_> = (0..10).step_by(3).collect(); in step_by_unaligned() 264 check(&v, || (0..10).into_par_iter().step_by(3)) in step_by_unaligned()
|