Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add checked range removal to Buffer

オープン 初心者向け
#765 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
領域
compilers

調査の方向性

まず std/buffer/write.wave と std/buffer/alloc.wave を読んで、Buffer のレイアウト、所有権、移動ヘルパーを理解します。allocation なしの checked な offset/count による削除を追加し、続いて prefix、middle、suffix、バッファ全体、空の削除をカバーします。無効な範囲で bytes、len、cap が保持されることを検証し、O0 と O2 で成功する結果を確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue needs testing

Motivation

Buffer can append, pop and truncate, but consuming a prefix or removing a middle range requires callers to move overlapping bytes and update len manually.

Starting points: std/buffer/write.wave, std/buffer/alloc.wave.

Scope

Add checked offset/count removal using overlap-safe movement. Retain capacity and ownership without allocating. Insertion, sorting and automatic shrinking are outside this task.

Difficulty: easy.

Completion criteria

  • Cover prefix, middle, suffix, entire-buffer and empty removals.
  • Reject invalid buffers, negative ranges and overflow/out-of-bounds requests.
  • Preserve bytes/len/cap on failure and verify remaining bytes after success at O0/O2.
主要言語
Rust
スター
56
フォーク
21
平均マージ
3時間 19分
マージ済み PR(30日)
54

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wavefnd/Wave のほかの issue

wavefnd/Wave の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。