linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 aberto em 30 de jul. de 2024

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

Métricas do repositório

Stars
 (620 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

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.

Guia do colaborador