linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 opened on Jul 30, 2024

View on GitHub
 (3 comments) (1 reaction) (0 assignees)Rust (92 forks)github user discovery
good first issuehelp wanted

Repository metrics

Stars
 (620 stars)
PR merge metrics
 (PR metrics pending)

Description

In fontique there are some methods parse which could instead use FromStr and be able to use the str::parse function as detailed here: https://doc.rust-lang.org/std/primitive.str.html#method.parse

These methods are:

  • GenericFamily::parse()
  • Stretch::parse()
  • Style::parse()
  • Weight::parse()

This was suggested by @DJMcNab in #97.

Contributor guide