String Parsing
Recipe | Crates | Categories |
---|---|---|
Implement the FromStr Trait for a Custom struct |
Implement the FromStr
Trait for a Custom struct
Creates a custom struct RGB
and implements the FromStr
⮳ trait to convert a provided color hex code into its RGB color code.
Related Topics
- Parsing.
- Date and Time Parsing.
- Command-line Argument Parsing.
- Strings.