-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Result::as_ok() to as_value() and add as_value_mut().
Two reasons for renaming: - as_ok() looks and reads a lot like is_ok() and this is going to be particularly painful for non-native speakers I think. But in general it looks too similar. - The value() function is standard in C++ and since this is a method that is not mirroring a Rust api (they don't need reference access cuz everything moves all the time) there's flexability to match C++ more there.
- Loading branch information
Showing
3 changed files
with
72 additions
and
44 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
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