Create with an already-initialized locals mapping (non-NEWLOCALS frames).
(locals: ArgMapping)
| 497 | impl FrameLocals { |
| 498 | /// Create with an already-initialized locals mapping (non-NEWLOCALS frames). |
| 499 | fn with_locals(locals: ArgMapping) -> Self { |
| 500 | let cell = OnceCell::new(); |
| 501 | let _ = cell.set(locals); |
| 502 | Self { inner: cell } |
| 503 | } |
| 504 | |
| 505 | /// Create an empty lazy locals (for NEWLOCALS frames). |
| 506 | /// The dict will be created on first access. |