Feedback for “Class”
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
找到关于“Class”的文档部分,并检查当前对字段的说明方式。添加有关 pub 字段、其影响以及 issue 中描述的 NapiValue 错误的指导;当读者能够理解为什么意外的 pub 字段会导致此错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I'm trying to use napi-rs at the moment for a project and I'm generally very impressed and grateful for what you have created.
Yesterday I had the experience of getting quite confused about an error which said
the trait
NapiValueis not implemented for MyValue
And I couldn't see anything about MyValue that would be causing the problem given how I was setting it up. It turned out that I had another struct with #[napi] which had a pub value: MyValue field and it was the pub that was triggering the error. It never should have been pub but I guess I typed it accidentally at some point. I realise it is hard to control the kind of errors that the compiler produces in this situation but I'm wondering if the docs could be extended to include a section about pub fields and their implications and the kind of error that I ran into.
I would be happy to try to provide some text or a PR if that would be useful.
- 主要语言
- MDX
- 星标
- 25
- 派生
- 48
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 14
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
napi-rs/website 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 68/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
维护者通常 1 天内回复
相似的 Issue
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 78/100
-
effort:s impact:low raised-by:worker risk:low
难度 1/5 1 小时以内 新手友好度 70/100
medici-finance/assay#6496 · 1 条评论 ·
维护者通常 1 天内回复
-
area:docs documentation good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
area:docs good first issue
难度 2/5 1-3 小时 新手友好度 62/100
thainanluiz/TSSuper#30 ·
-
:watch: Not Triaged dotnet-fundamentals/svc install/subsvc
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复