Builds immutable bytes from checked unsigned 8-bit values.
Signature
Each element is a u8, so out-of-range literal bytes are compile errors. The Bin owns shared immutable storage and has no text encoding until decoded explicitly.
Parameters
Returns
BinImmutable packed bytes.
Examples
Builds immutable bytes from checked unsigned 8-bit values
Run the example, then change the data and inspect the result.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
AB
Rust definition
Rust SDK data primitives; the language checker specializes the same runtime operation.
View Rust documentation →Support: runtime