summaryrefslogtreecommitdiff
path: root/p65ysa.md
blob: fe2c9b9094db55223ce4efae1d199c7776e09e19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
id: p65ysa
date: 2026-02-13T13:24:54+0300
languages: [en]
aliases:

reviews:

tags:
- draft
- knowledge

- snippet
- rust
---
# Initialize large array in Rust (non-Copy object)

To initialize such array you can use inline const:
```rust
let variable = [const { Object { ... } }; HUGE_SIZE];
```

## Up
-