MCPcopy Index your code
hub / github.com/RustPython/RustPython / new

Method new

crates/vm/src/frame.rs:106–108  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

104
105impl<T> FrameUnsafeCell<T> {
106 fn new(value: T) -> Self {
107 Self(UnsafeCell::new(value))
108 }
109
110 /// # Safety
111 /// Caller must ensure no concurrent mutable access.

Callers

nothing calls this directly

Calls 11

SelfFunction · 0.85
newFunction · 0.85
HeapClass · 0.85
fastlocals_mutMethod · 0.80
noneMethod · 0.80
SomeClass · 0.50
lenMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
getMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected