-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register new CName / CName as Hash (#41)
* Convert CName from/to u64 allows to use std::hash:Hash with newtype pattern over CName * Add method to register new CName * Lint code * Check CName exists in Rust also renamed according to IsNameValid (cyberdoc) * Handle None for CName * More idiomatic conversion from CName to u64 * Add check for None in CName new * Rename CName add to new_pooled * Add unit-test for CName new with empty string * Refactor check for None in CName new Co-authored-by: jac3km4 <[email protected]> * Lint code * Add annotations to CName functions --------- Co-authored-by: jac3km4 <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
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
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