Narra

Reference

std/box

std/box

Box<T>, a value behind a reference, for recursive data.

narra
import * as Boxes from "std/box"

The guide teaches it in chapter 4, Structs and enums.

This page is generated by scripts/std/generate.nra from narrac query --json interface std/box. Do not edit it.

Functions

new

narra
export function new<T>(value: T): Box<T> uses alloc

Effects: alloc.