-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds `Figment::extract_{inner_}lossy()`, variants of the existing methods that convert string representations of booleans and integers into their boolean and integer forms. The original string form is lost and is not directly recoverable. Methods that performs the same conversion are added to `Value` types: * `Value::to_num_lossy()` * `Value::to_bool_lossy()` * `Num::to_u128_lossy()` * `Num::from_str()` Closes #97. Co-authored-by: Sergio Benitez <sb@sergio.bz>
- Loading branch information
1 parent
d2a31e8
commit 2c83ffa
Showing
6 changed files
with
361 additions
and
28 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
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
Oops, something went wrong.