menu

AllocationOutOfMemory

import { AllocationOutOfMemory } from "destack:memory";

Allocation failed because the runtime could not reserve enough memory.

language/library/src/memory/error.ds:6:15
1export struct AllocationOutOfMemory {2    kind: "outOfMemory";3    requestedBytes: usize;4    message: string;5}

Members

kind: "outOfMemory"

Discriminant for allocation failure matching.

requestedBytes: usize

Requested allocation size in bytes when known.

message: string

Human-readable diagnostic detail.