deprecate `as_slice` and `as_mut_slice`?
维护者通常 1 天内回复
@Ankit-cs 已经在做这个了。
开始于 2026年10月7日。
评估
调研方向
Start by reading the as_slice and as_mut_slice methods and the AsRef and AsMut implementations in the smallvec source. Check their call sites and tests to understand the impact of deprecating the methods; the issue is a request for comments, so the desired decision and what counts as done are not yet specified.
由索引模型根据 Issue 内容生成。
描述
as_slice and as_mut_slice are accessors to the underlying slice represented by the smallvec
idiomatic rust consistently prefers trait implementations, such as AsRef and AsMut to be used over bespoke helper methods
since we only implement AsRef<[T]> and AsMut<[T]>, and not other reference-to-reference conversions, calling as_ref and as_mut on a smallvec is unambiguous
request for comments
- 主要语言
- Rust
- 星标
- 1.8k
- 派生
- 229
- 平均合并
- 1 天 41 分钟
- 30 天内合并 PR
- 62
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
servo/rust-smallvec 的其他 Issue
-
add `From<Box<[T]>, A> for SmallVec<T, N, A>` conversion可能已有人在做 @Ankit-cs 于 2 天前认领。 未关闭good first issue help wanted r-feature
难度 2/5 1-3 小时 新手友好度 84/100
servo/rust-smallvec#716 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Allocators are stable on nightly Rust可能已有人在做 @GauravPawar101 于 7 天前认领。 未关闭good first issue help wanted r-docs
难度 1/5 1 小时以内 新手友好度 70/100
servo/rust-smallvec#662 · 3 条评论 · 3 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
port #737 to v1可能已有人在做 @Ankit-cs 于 1 天前认领。 未关闭good first issue help wanted r-fuzzing
难度 3/5 1-2 天 新手友好度 52/100
servo/rust-smallvec#747 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
`v1.16.3` release preparation可能已有人在做 @alejandro-vaz 于 3 天前认领。 未关闭r-policy
servo/rust-smallvec#743 · 已指派 1 人 ·
维护者通常 1 天内回复
-
rename lifetimes to be descriptive可能已有人在做 @Ankit-cs 于 2 天前认领。 未关闭good first issue help wanted r-refactor
难度 3/5 1-2 天 新手友好度 55/100
servo/rust-smallvec#735 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 servo/rust-smallvec 的全部 Issue
相似的 Issue
-
[Feature]: [P3] engine-rs: the package source hash should ignore line endings and untracked files未关闭
难度 2/5 1-3 小时 新手友好度 70/100
maniator/verticopolis#880 ·
维护者通常 1 天内回复
-
IO.get_env on Node truncates names at embedded NUL可能已有人在做 @Yi-111-a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
HigherOrderCO/Bend#1449 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复