linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 geöffnet am 30. Juli 2024

Auf GitHub ansehen
 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (92 Forks)github user discovery
good first issuehelp wanted

Repository-Metriken

Stars
 (620 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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