Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fast-rustc-ap-rustc_index-1.0.0/vec.rs: self.raw.resize_with(min_new_len, fill_value);
- fast-rustc-ap-rustc_index-1.0.0/vec.rs: self.raw.resize_with(min_new_len, fill_value);
- rustc-ap-rustc_index-653.0.0/vec.rs: self.raw.resize_with(min_new_len, fill_value);
- rustc-ap-rustc_index-653.0.0/vec.rs: self.raw.resize_with(min_new_len, fill_value);
- msiz_rustc-ap-rustc_data_structures-3.0.0/indexed_vec.rs: self.raw.resize_with(min_new_len, fill_value);
- msiz_rustc-ap-rustc_data_structures-3.0.0/indexed_vec.rs: self.raw.resize_with(min_new_len, fill_value);
- noodle-0.2.0/src/lib.rs: self.buffer.resize_with(full_len, || 0);
- noodle-0.2.0/src/lib.rs: self.buffer.resize_with(old_len + self.alloc_size, || 0);
- jtm-0.0.1/src/lib.rs: data.resize_with(32, Default::default);
- jtm-0.0.1/src/lib.rs: x_data.resize_with(32, Default::default);
- jtm-0.0.1/src/lib.rs: y_data.resize_with(32, Default::default);
- jtm-0.0.1/src/lib.rs: data.resize_with(33, Default::default);
- sonogram-0.4.3/src/spectrograph.rs: signal.resize_with(new_len, || Complex::new(0.0, 0.0));
- bumblebee-0.1.1/src/rules.rs: arr.resize_with(*index + 1, Value::default);
- bumblebee-0.1.1/src/rules.rs: arr.resize_with(*index + 1, Value::default);
- zkp-0.7.0/src/util.rs: entries.resize_with(rows * cols, Default::default);
- sled-0.31.0/src/lru.rs: shards.resize_with(n_shards, || {
- sled-0.31.0/src/histogram.rs: vals.resize_with(BUCKETS, Default::default);
- cpt-0.4.1/src/model.rs: b.resize_with(b_l, || vec![]);
- definitive-0.1.0/src/vector.rs: self.resize_with(Default::default)
- definitive-0.1.0/src/vector.rs: self.resize_with(One::one)
- definitive-0.1.0/src/vector.rs: self.resize_with(Zero::zero)
- esl01-indexedlog-0.1.1/src/index.rs: result.checked.resize_with(checked_needed, Default::default);
- pixels-0.0.2/src/lib.rs: pixels.resize_with(capacity, Default::default);
- grid_2d-0.14.4/src/lib.rs: cells.resize_with(count, || value);
- grid_2d-0.14.4/src/lib.rs: cells.resize_with(count, Default::default);
- bls_eth_rust-0.0.2/tests/test.rs: msgs.resize_with(n * MSG_SIZE, Default::default);
- mech-core-0.0.4/src/runtime.rs: self.scratch.column_index_to_alias.resize_with(iix + 1, ||{None});
- oqueue-0.1.0/src/sequencer.rs: self.pending.resize_with(offset + 1, || Output {
- arrsac-0.3.0/src/lib.rs: hypotheses.resize_with(num_retain, || {
- pagecache-0.19.4/src/histogram.rs: vals.resize_with(BUCKETS, Default::default);
- rio-0.9.2/src/histogram.rs: vals.resize_with(BUCKETS, Default::default);
- algebraics-0.2.0/src/array2d.rs: data.resize_with(len, f);
- solana_libra_canonical_serialization-0.0.1-sol4/src/canonical_serialization_test.rs: evil_bytes.resize_with(4 + 499, Default::default);
- historian-4.0.3/src/lib.rs: vals.resize_with(BUCKETS, Default::default);
- tabb-0.1.0/src/formatter.rs: columns_to_lengths.resize_with(column_value_lenghts.len(), Vec::new)
- reckoner-0.1.0/src/integer.rs: char_vec.resize_with(required_len, Default::default);
- reckoner-0.1.0/src/rational.rs: char_vec.resize_with(required_len, Default::default);
- reckoner-0.1.0/src/rational.rs: char_vec.resize_with(required_len, Default::default);
- indexed-ring-buffer-0.1.3/benches/bench.rs: progress.resize_with(READER_CNT, || AtomicUsize::new(PREV_ID));
- indexed-ring-buffer-0.1.3/src/lib.rs: data.resize_with(sz + 1, MaybeUninit::uninit);
- indexed-ring-buffer-0.1.3/src/lib.rs: temp_a.resize_with(a.len(), MaybeUninit::uninit);
- indexed-ring-buffer-0.1.3/src/lib.rs: temp_b.resize_with(b.len(), MaybeUninit::uninit);
- indexed-ring-buffer-0.1.3/tests/threads.rs: progress.resize_with(READER_CNT, || AtomicUsize::new(PREV_ID));
- voile-util-0.2.2/src/meta.rs: .resize_with(meta_count.0, Default::default);
- askii-0.6.0/src/editor.rs: self.chars.resize_with(y + 1, Vec::default);
- amethyst_tiles-0.3.0/src/map.rs: data.resize_with(size, T::default);
- safe-uninit-0.1.0/src/foreign_alloc.rs: self.resize_with(new_len, || T::safe_uninit())
- safe-uninit-0.1.0/src/foreign_alloc.rs: self.resize_with(new_len, || T::safe_uninit())
- hnsw-0.6.1/examples/recall.rs: v.resize_with(opt.k, || unreachable!());
- hnsw-0.6.1/examples/recall_discrete.rs: v.resize_with(opt.k, || unreachable!());
- kiro-editor-0.3.5/src/highlight.rs: self.lines.resize_with(rows.len(), Default::default);
- r-fairdist-0.1.0/src/counter.rs: v.resize_with(n, num::Zero::zero);
- hamming-heap-0.4.1/src/fixed_heap.rs: self.distances.resize_with(distances, || vec![]);
- hamming-heap-0.4.1/src/heap.rs: self.distances.resize_with(distances, || vec![]);
- jimage-0.2.3/tests/jdk13.rs: v.resize_with(res.size() as usize, || 0);
- der-oid-macro-0.1.0/src/lib.rs: enc.resize_with(enc.len() + octects_needed, Default::default);
- bufferpool-0.1.7/src/lib.rs: (*buffer).resize_with(new_len * self.buffer_size, V::default);
- basalt-0.6.1/src/atlas.rs: alloc.resize_with(alloc_cell_w, || {
- spool-0.1.2/src/pool.rs: data.resize_with(capacity, PoolItem::new);
- index_vec-0.1.0/src/lib.rs: self.raw.resize_with(new_len, f)
- lxtrace-0.1.0/src/tracer.rs: evaluated.resize_with(6, Default::default);
- bounded-vec-deque-0.1.1/src/lib.rs://! [`resize_with()`]: struct.BoundedVecDeque.html#method.resize_with
- bounded-vec-deque-0.1.1/src/lib.rs: /// deque.resize_with(5, Default::default);
- bounded-vec-deque-0.1.1/src/lib.rs: /// deque.resize_with(2, || unreachable!());
- bounded-vec-deque-0.1.1/src/lib.rs: /// deque.resize_with(5, || { state += 1; state });
- bounded-vec-deque-0.1.1/src/lib.rs: self.vec_deque.resize_with(new_len, producer)
- snare-0.3.0/src/jobrunner.rs: running.resize_with(maxjobs, || None);
- snare-0.3.0/src/jobrunner.rs: pollfds.resize_with(maxjobs * 2 + 1, || PollFd::new(-1, PollFlags::empty()));
- snare-0.3.0/src/jobrunner.rs: self.running.resize_with(new_maxjobs, || None);
- snare-0.3.0/src/jobrunner.rs: .resize_with(new_maxjobs * 2 + 1, || PollFd::new(-1, PollFlags::empty()));
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- dicom-parser-0.1.0/src/parser.rs: self.buffer.resize_with(len, Default::default);
- fup-0.7.5/src/aggregate.rs: levels.resize_with(129, Vec::new);
- ringbuf-0.2.1/src/ring_buffer.rs: data.resize_with(capacity + 1, MaybeUninit::uninit);
- unseemly-0.0.0/src/earley.rs: chart.resize_with(toks.len() + 1, std::default::Default::default);
- unseemly-0.0.0/src/ty_compare.rs: envs_with_walked_drivers.resize_with(expected_len, Assoc::new);
- unseemly-0.0.0/src/ty_compare.rs: .resize_with(expected_len, || Subtype::underspecified(n("ddd_bit")).0);
- amethyst_nphysics-0.1.1/src/rigid_body_physics_server.rs: out_contacts.resize_with(contacts.len(), ContactEvent::default);
- screwsat-0.1.0/src/main.rs: self.assignments.resize_with(var_count, || BooleanValue::UNDEFINE);
- screwsat-0.1.0/src/main.rs: self.watches.resize_with(2 * var_count, || Vec::new());
- kas-wgpu-0.3.0/examples/dynamic.rs: self.list.inner_mut().resize_with(mgr, n, |i| EditBox::new(i.to_string()));
- vecarray-0.1.3/src/lib.rs: ret.resize_with(N::to_usize(), Default::default);
- kamadak-exif-0.5.1/src/writer.rs: self.ifd_list.resize_with(ifd_num + 1, Default::default);
- alloc-wg-0.8.0/src/vec.rs: /// vec.resize_with(5, Default::default);
- alloc-wg-0.8.0/src/vec.rs: /// vec.resize_with(4, || {
- alloc-wg-0.8.0/src/vec.rs: /// [`resize_with`]: #method.resize_with
- overloadable-0.4.1/tests/default.rs: val.resize_with(x, || self.clone());
- skew-forest-0.1.0/src/map.rs: self.inner.resize_with(inner_len, &mut f);
- skew-forest-0.1.0/src/map.rs: self.leaves.resize_with(leaf_len, f);
- win32job-1.0.1/src/limits.rs: big_vec.resize_with(test_vec_size, || 1);
- kmeans-0.1.0/src/lib.rs: allocation.resize_with(allocation.capacity(), Default::default);
- rust-simple-stack-processor-0.7.0/src/lib.rs: .resize_with(newaddress + num_cells, Default::default);
- sparse-merkle-tree-0.1.1/src/tree.rs: leaves_path.resize_with(keys.len(), Default::default);
- hecs-0.2.10/src/entities.rs: new_reserved.resize_with(new_len, || AtomicU32::new(0));
- ash-tray-0.16.0/src/vk_helper.rs: .resize_with(ret.1.last().unwrap().1 as _, Default::default);
- tracing-subscriber-0.2.4/src/thread.rs: data.resize_with(len, || None);
- tracing-subscriber-0.2.4/src/thread.rs: this.resize_with(i + 1, || None);
- luminance-0.39.0/src/texture.rs: texels.resize_with((w * h) as usize * pf.canals_len(), Default::default);
- lfsr-macro-lookup-0.3.0/src/lib.rs: reverse_lfsr_states.resize_with(lfsr_states.len() + 1, || 0);
- chunky-0.3.7/src/multi_arena.rs: self.bins.resize_with(index + 1, Default::default)
- qip-0.11.0/src/utils.rs: col_mat.resize_with(sparse_len, || Arc::new(Mutex::new(vec![])));
- mssql-browser-0.1.0/src/browse.rs: self.buffer.resize_with(65535 + 3, Default::default);
- mssql-browser-0.1.0/src/browse_host.rs: buffer.resize_with(buffer.capacity(), Default::default);
- filter-0.1.0/src/common.rs: result.resize_with(m as usize, F::zero);
- texture-synthesis-0.8.0/src/ms.rs: pixels_resolved_this_stage.resize_with(n_workers, || Mutex::new(Vec::new()));
- texture-synthesis-0.8.0/src/ms.rs: rtrees.resize_with((grid_width * grid_height) as usize, || {
- ochenslab-0.0.2/src/lib.rs: storage.resize_with(capacity, || None);
- ochenslab-0.0.2/src/lib.rs: free.resize_with(capacity, || {
- polynomial-ring-0.1.1/src/lib.rs: self.coef.resize_with(len, M::zero);
- bluetooth_mesh-0.1.4/src/reassembler.rs: storage.resize_with(header.max_len(), u8::default);
- bluetooth_mesh-0.1.4/src/control.rs: out.payload.resize_with(self.len(), u8::default);
- romy-window-0.2.7/src/lib.rs: pixels.resize_with(capacity, Default::default);
- sc-executor-0.8.0-alpha.5/src/wasm_runtime.rs: instances.resize_with(max_instances, || Mutex::new(None));
- sss-rs-0.6.1/tests/benchmarks.rs: unsafe { secret_buf.resize_with(secret_len, ||
- longest-increasing-subsequence-0.1.0/src/lib.rs:/// predecessors.resize_with(xs.len(), Default::default);
- longest-increasing-subsequence-0.1.0/src/lib.rs:/// starts.resize_with(xs.len(), Default::default);
- longest-increasing-subsequence-0.1.0/src/lib.rs:/// predecessors.resize_with(ys.len(), Default::default);
- longest-increasing-subsequence-0.1.0/src/lib.rs:/// starts.resize_with(ys.len(), Default::default);
- shticker_book_unwritten-1.0.0/src/patch.rs: old.resize_with(oldsize as usize, Default::default);
- shticker_book_unwritten-1.0.0/src/patch.rs: new.resize_with(newsize as usize, Default::default);
- ingrid-0.1.0/src/grid.rs: rows.resize_with(size.height, || {
- ingrid-0.1.0/src/grid.rs: rows.resize_with(capacity.height, || Vec::<T>::with_capacity(capacity.width));
- ingrid-0.1.0/src/grid.rs: self.rows.resize_with(size.height, || {
- ingrid-0.1.0/src/grid.rs: self.rows.resize_with(foobar, || Vec::<T>::with_capacity(row_capacity));
- antlr-rust-0.1.1/src/parser_atn_simulator.rs: alt_to_pred.resize_with(nalts + 1, || None);
- tinyvec-0.3.3/src/tinyvec.rs: /// tv.resize_with(5, Default::default);
- tinyvec-0.3.3/src/tinyvec.rs: /// tv.resize_with(4, || {
- tinyvec-0.3.3/src/tinyvec.rs: TinyVec::Inline(a) => a.resize_with(new_len, f),
- tinyvec-0.3.3/src/tinyvec.rs: TinyVec::Heap(v) => v.resize_with(new_len, f),
- tinyvec-0.3.3/src/arrayvec.rs: /// av.resize_with(5, Default::default);
- tinyvec-0.3.3/src/arrayvec.rs: /// av.resize_with(4, || { p *= 2; p });
- nuclear-router-0.1.0/src/router/core.rs: segments.resize_with(num, || Segment {
- ed25519-dalek-cosi-0.1.0/src/data_structures/varuint.rs: data_vec.resize_with(16, Default::default);
- shine-graph-0.2.0/src/svec/densestore.rs: self.values.resize_with(idx + 1, || None);
- lol_html-0.2.0/src/selectors_vm/compiler.rs: .resize_with(ast.cumulative_node_count, || InstrStub::new_boxed());
- pagecache-0.19.4/src/ds/lru.rs: shards.resize_with(n_shards, || Mutex::new(Shard::new(shard_capacity)));
- blip-0.1.0-alpha.6/src/collections/tumbler.rs: rings.resize_with(size, Default::default);
- drone-0.11.1/src/heap/generate.rs: output.resize_with(output.capacity(), Default::default);
- bumpalo-3.2.1/src/collections/vec.rs: /// [`resize_with`]: #method.resize_with
- ckb-vm-0.19.1/src/machine/trace.rs: self.traces.resize_with(TRACE_SIZE, Trace::default);
- sc-finality-grandpa-0.8.0-alpha.5/src/communication/gossip.rs: authorities.resize_with(30, || PeerId::random());
- sc-finality-grandpa-0.8.0-alpha.5/src/communication/gossip.rs: full_nodes.resize_with(30, || PeerId::random());
- prototty_ansi_terminal-0.29.0/src/terminal/byte_prefix_tree.rs: self.children.resize_with(ENTRIES_PER_NODE, || None);
- rustfst-0.5.0/src/algorithms/partition.rs: self.elements.resize_with(num_elements, Element::new);
- rustfst-0.5.0/src/algorithms/partition.rs: self.classes.resize_with(num_class + 1, Class::new);
- rustfst-0.5.0/src/algorithms/partition.rs: .resize_with(num_class + num_additional_classes, Class::new);
- rustfst-0.5.0/src/algorithms/partition.rs: self.classes.resize_with(self.classes.len() + 1, Class::new);
- salva2d-0.2.0/src/geometry/contacts.rs: fluid_fluid_contacts.resize_with(fluids.len(), || ParticlesContacts::new());
- salva2d-0.2.0/src/geometry/contacts.rs: fluid_boundary_contacts.resize_with(fluids.len(), || ParticlesContacts::new());
- salva2d-0.2.0/src/geometry/contacts.rs: boundary_boundary_contacts.resize_with(boundaries.len(), || ParticlesContacts::new());
- salva2d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()))
- salva2d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()))
- salva2d-0.2.0/src/geometry/contacts.rs: .resize_with(boundary.num_particles(), || RwLock::new(Vec::new()))
- salva2d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()));
- sudachiclone-0.2.1/src/darts/double_array_builder.rs: self.units.resize_with(dest_num_units, Default::default);
- bitvec-0.17.4/src/vec/api.rs: /// bv.resize_with(5, Default::default);
- bitvec-0.17.4/src/vec/api.rs: /// bv.resize_with(4, || { p += 1; p % 2 == 0});
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: self.buffers.resize_with(ret_subs_used, || Vec::with_capacity(10));
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- yottadb-0.3.0/src/simple_api/mod.rs: out_buffer.resize_with(out_buffer_t.len_used as usize, Default::default);
- bae_rs-0.12.1/src/channels/standard_channel.rs: self.output.resize_with(self.output.len(), Default::default);
- xoodyak-0.3.7/src/xoodyak/keyed.rs: in_out.resize_with(ct_len + AUTH_TAG_BYTES, || 0);
- dxplr-0.0.17/src/dwrite/dwrite.rs: metrics.resize_with(indices.len(), || Default::default());
- chargrid_ansi_terminal-0.1.0/src/terminal/byte_prefix_tree.rs: self.children.resize_with(ENTRIES_PER_NODE, || None);
- rustty-0.1.12/src/core/terminal.rs: try!(terminal.resize_with_cell(cell));
- rustty-0.1.12/src/core/terminal.rs: try!(self.resize_with_cell(cell));
- rustty-0.1.12/src/core/terminal.rs: self.resize_with_cell(Cell::default())
- specs-0.16.1/src/storage/storages.rs: self.0.resize_with(id, Default::default);
- salva3d-0.2.0/src/geometry/contacts.rs: fluid_fluid_contacts.resize_with(fluids.len(), || ParticlesContacts::new());
- salva3d-0.2.0/src/geometry/contacts.rs: fluid_boundary_contacts.resize_with(fluids.len(), || ParticlesContacts::new());
- salva3d-0.2.0/src/geometry/contacts.rs: boundary_boundary_contacts.resize_with(boundaries.len(), || ParticlesContacts::new());
- salva3d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()))
- salva3d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()))
- salva3d-0.2.0/src/geometry/contacts.rs: .resize_with(boundary.num_particles(), || RwLock::new(Vec::new()))
- salva3d-0.2.0/src/geometry/contacts.rs: .resize_with(fluid.num_particles(), || RwLock::new(Vec::new()));
- sss-rs-0.6.1/src/geometry/galois_polynomial.rs: self.coeffs.resize_with(index + 1, || Coeff(0));
- solang-0.1.1/tests/substrate_expressions/mod.rs: data.resize_with(length + 1, || rng.gen());
- caldera-0.2.0/src/player/resample.rs: interps.resize_with(channels as usize, || Interp::new(src_rate, out_rate));
- caldera-0.2.0/src/player/resample.rs: inputs.resize_with(self.interps.len(), || Vec::with_capacity(input.len() / self.interps.len()));
- parquet-0.16.0/src/arrow/array_reader.rs: data_buffer.resize_with(batch_size, T::T::default);
- parquet-0.16.0/src/arrow/array_reader.rs: buf.resize_with(batch_size, || 0);
- parquet-0.16.0/src/arrow/array_reader.rs: buf.resize_with(batch_size, || 0);
- rust-bert-0.6.2/src/gpt2/gpt2.rs: out.resize_with(self.h.len(), || None::<Tensor>);
- netstat2-0.8.1/src/integrations/osx/netstat.rs: pids.resize_with(number_of_pids as usize, Default::default);
- netstat2-0.8.1/src/integrations/osx/netstat.rs: fds.resize_with(number_of_fds as usize, || proc_fdinfo {
- glutin-0.24.0/src/api/egl/mod.rs: config_ids.resize_with(num_configs as usize, || std::mem::zeroed());
- graphannis-0.26.0/src/annis/db/plan.rs: result.resize_with(tmp.len(), Default::default);
- rustfst-0.5.0/src/fst_impls/const_fst/serializable_fst.rs: const_states.resize_with(_state, || ConstState {
- rustfst-0.5.0/src/fst_impls/const_fst/serializable_fst.rs: const_states.resize_with(num_states, || ConstState {
- rustfst-0.5.0/src/fst_impls/vector_fst/mutable_fst.rs: self.states.resize_with(len + n, VectorFstState::new);
- rustfst-0.5.0/src/algorithms/cache/vector_cache_state.rs: self.cache_states.resize_with(new_len, CacheState::new);
- nar-0.0.8/src/check/monad/meta.rs: .resize_with(meta_count.0, Default::default);
- proteus-0.1.1/src/actions/setter/setter.rs: arr.resize_with(index + 1, Value::default);
- retriever-0.0.3/src/internal/mr/rvec.rs: self.data.resize_with(new_size, Default::default);
- dynasm-0.6.0/src/arch/aarch64/matching.rs: new_args.resize_with(arg_count, || FlatArg::Default);
- io_bluetooth-0.1.0/src/sys/windows/bt.rs: c::WSAEFAULT => buffer.resize_with(len as usize, Default::default),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement