linebender/parley

Use `FromStr` rather than `fn parse`

Open

#98 创建于 2024年7月30日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)Rust (92 fork)github user discovery
good first issuehelp wanted

仓库指标

Star
 (620 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南