linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 aperta il 30 lug 2024

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)Rust (92 fork)github user discovery
good first issuehelp wanted

Metriche repository

Star
 (620 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor