summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p65ysa.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/p65ysa.md b/p65ysa.md
new file mode 100644
index 0000000..fe2c9b9
--- /dev/null
+++ b/p65ysa.md
@@ -0,0 +1,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
+-