-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement binary_search for
collections::Vec
(#836)
* [storage] Implement binary_search * [storage] Add binary_search testcase for missing smaller element * [storage] use indexing instead of Vec::get Co-authored-by: Robin Freyler <robbepop@web.de> * [storage] Port binary_search tests from core * [storage] Format tests * [storage] Format tests * Remove old comment Co-authored-by: Robin Freyler <robbepop@web.de> * [storage] Incorporate review feedback * [CI] add comparator to spellcheck Porting binary_search to the storage Vec, including the documentation found in core, led to a failure in spellcheck. Since core is considered to be correct, it is updated on spellcheck. * incorporate review feedback * add permalink to stdlib source * Split long line * fix examples * RustFmt the doc examples Co-authored-by: Robin Freyler <robbepop@web.de> Co-authored-by: Hernando Castano <hernando@hcastano.com>
- Loading branch information
1 parent
1747b34
commit 36bbdec
Showing
3 changed files
with
258 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ bitvector | |
bitwise | ||
callee | ||
codegen | ||
comparator | ||
const | ||
crypto | ||
cryptographic | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters