Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

deprecate `as_slice` and `as_mut_slice`?

Đang mở
#736 4 bình luận 2 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Ankit-cs đang làm issue này rồi.

Từ ngày 7/10/2026.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

good first issue help wanted r-refactor

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

Ngôn ngữ chính
Rust
Star
1.8k
Fork
229
Merge trung bình
1 ngày 41 phút
Pull request đã merge (30 ngày)
62

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của servo/rust-smallvec

Tất cả issue của servo/rust-smallvec

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.