MCPcopy Create free account
hub / github.com/Manishearth/array-init / new_element

Method new_element

src/lib.rs:433–440  ·  view source on GitHub ↗
(self: &'_ Self)

Source from the content-addressed store, hash-verified

431 }
432
433 pub(super) fn new_element(self: &'_ Self) -> Element<'_> {
434 let i = self.next_uninit_slot.get();
435 self.next_uninit_slot.set(i + 1);
436 self.slots[i].set(true);
437 Element {
438 slot: &self.slots[i],
439 }
440 }
441
442 fn new() -> Self {
443 Self {

Callers 3

array_init_no_dropFunction · 0.80
from_iter_no_dropFunction · 0.80

Calls

no outgoing calls

Tested by 3

array_init_no_dropFunction · 0.64
from_iter_no_dropFunction · 0.64