linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 opened on 2024年7月30日

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)

説明

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.

コントリビューターガイド