Skip to content

Commit

Permalink
Update docs to actually include new features (#417)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Glotfelty <[email protected]>
  • Loading branch information
Peternator7 and Peter Glotfelty authored Feb 15, 2025
1 parent 9db3c4d commit 4c1f6c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions strum_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ fn debug_print_generated(ast: &DeriveInput, toks: &TokenStream) {
/// If you have a large enum, you may want to consider using the `use_phf` attribute here. It leverages
/// perfect hash functions to parse much quicker than a standard `match`. (MSRV 1.46)
///
/// The default error type is `strum::ParseError`. This can be overriden by applying both the
/// `parse_err_ty` and `parse_err_fn` attributes at the type level. `parse_error_fn` should be a
/// function that accepts an `&str` and returns the type `parse_error_ty`. See
/// [this test case](https://github.com/Peternator7/strum/blob/9db3c4dc9b6f585aeb9f5f15f9cc18b6cf4fd780/strum_tests/tests/from_str.rs#L233)
/// for an example.
///
/// # Example how to use `EnumString`
/// ```
/// use std::str::FromStr;
Expand Down

0 comments on commit 4c1f6c1

Please sign in to comment.