Anders429 / Anders429/substring

Use RangeBounds<usize> instead of usize.

オープン
#9 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
11
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

The parameters for the `substring` method can be changed to a RangeBounds. This will allow for providing inclusive end points, as well as providing unbounded start/end points (as has been requested in #5).

This would be a breaking change, but I think it will make the library a bit easier to use. I would rather do this than introduce several methods for each specific case. It will also raise MSRV to match what is required for `RangeBounds`.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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