Tracking issue for `str_split_at_unchecked`

Đang mở
#165,545 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ 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

Read the stabilization section of the Rust std-dev guide linked in the issue, then review the tracking issue and implementation PR #165546. The issue says OsStr::split_at_unchecked depends on #156199; check that dependency and the stabilization criteria before assessing readiness. Done means the stabilization PR is prepared for the listed APIs once the dependency is satisfied.

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

Mô tả

C-tracking-issue S-tracking-unimplemented T-libs

Feature gate: #![feature(str_split_at_unchecked)]

This is a tracking issue for exposing the split_at_unchecked and split_at_mut_unchecked on str and OsStr.

Public API
impl str {
    pub const unsafe fn split_at_unchecked(&self, mid: usize) -> (&str, &str);
    pub const unsafe fn split_at_mut_unchecked(&mut self, mid: usize) -> (&mut str, &mut str);
}

impl OsStr {
    pub unsafe fn split_at_unchecked(&self, mid: usize) -> (&OsStr, &OsStr);
}
Remarks

OsStr::split_at_unchecked needs to stabilize after #156199.

Steps / History
  • ACP: rust-lang/libs-team#938
  • Implementation: #165546
  • Stabilization PR^1
Unresolved Questions
  • None yet.
Ngôn ngữ chính
Rust
Star
121k
Fork
17.3k
Merge trung bình
2 ngày 21 giờ
Pull request đã merge (30 ngày)
531

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 rust-lang/rust

Tất cả issue của rust-lang/rust

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.