Skip to content

Commit

Permalink
Add numbers and strings parsing details to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
malobre committed May 4, 2022
1 parent d7b3195 commit 21fb33b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,18 @@ let config: Config = de_env::from_env().unwrap();
println!("{config:#?}");
```

## Boolean parsing
## Primitives

### Strings & chars

The input is checked for UTF-8 validity and returned as is.

### Numbers

If the input is valid Unicode, integers and floats are parsed with their
respective `FromStr` implementations.

### Booleans

**Boolean parsing is case-insensitive.**

Expand All @@ -46,7 +57,7 @@ If the `truthy-falsy` feature is enabled (default):
If the `truthy-falsy` feature is disabled, only `true` and `false` are
considered valid booleans.

## Enum
## Enums

**Only unit variants can be deserialized.**

Expand Down

0 comments on commit 21fb33b

Please sign in to comment.