所有権
「所有権」を扱った15問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Rust / WRITE · 2026-11-17 いちばん長い文字列を取り出す 所有権, ムーブ, 可変参照, Vec::remove, 要素を取り出す, ownership, move out of index, mutable reference
- Rust / READ · 2026-11-17 渡した先で伸びる文字列 所有権, ムーブ, clone, 値渡し, 戻り値で所有権を返す, ownership, move, clone, pass by value
- Zig / WRITE · 2026-11-10 2つ確保して渡す std.mem.Allocator, errdefer, 確保の失敗, 所有権の受け渡し, dupe, checkAllAllocationFailures, caller owns memory, allocation failure
- Zig / DEBUG · 2026-11-10 アリーナで作って返す ArenaAllocator, std.mem.Allocator, 一時領域, 解放済みの領域, 所有権, defer arena.deinit, use after free, temporary allocation
- Zig / WRITE · 2026-11-02 書いた文字列を返す std.Io.Writer.Allocating, toOwnedSlice, defer, deinit, アロケータ, 所有権の受け渡し, allocating writer, caller owns memory
- Rust / READ · 2026-11-02 アリーナに入れた値の破棄 Drop の順序, アリーナ, まとめて解放, 所有権の移動, 宣言の逆順, drop order, Vec drop order, arena allocation
- Rust / DEBUG · 2026-10-13 取り出したまま帰る std::mem::take, 文字列の連結, 早期リターン, オペランドの評価順, データの消失, string concatenation, early return, evaluation order
- Rust / READ · 2026-10-03 複製した統計の行方 derive(Clone), Rcのclone, Cellの共有, 浅いコピーと深いコピー, shared mutable state, Rc clone shares
- Rust / READ · 2026-09-23 Boxで作る木 セグメント木, Box, 再帰的データ構造, recursive tree
- Rust / DEBUG · 2026-09-16 引数で所有権を奪う 所有権, 参照で受ける, ムーブ, ownership
- Rust / WRITE · 2026-08-28 氏名の列を二つに分ける スキーマの移行, 列の分割, split_once, 借用した &str と所有する String, Option で表す欠けた値, schema migration, data migration
- Rust / DEBUG · 2026-08-22 forで持っていかれる ムーブ, into_iter, 所有権, move by iteration
- Rust / READ · 2026-08-21 所有権の移動 所有権, ムーブ, 借用, ownership move
- Rust / DEBUG · 2026-08-21 可変と不変の同居 借用規則, 可変借用, 不変借用, borrow checker
- Rust / DEBUG · 2026-08-20 二重の可変借用 可変借用, 借用規則, borrow checker, mutable borrow