linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 ouverte le 30 juil. 2024

Voir sur GitHub
 (3 commentaires) (1 réaction) (0 assignés)Rust (92 forks)github user discovery
good first issuehelp wanted

Métriques du dépôt

Stars
 (620 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur