Skip to content

Tracking Issue for vec_deque_iter_as_slices #133253

Open
@zopsicle

Description

@zopsicle

Feature gate: #![feature(vec_deque_iter_as_slices)]

This is a tracking issue for:

  • alloc::collections::vec_deque::Iter::as_slices
  • alloc::collections::vec_deque::IterMut::into_slices
  • alloc::collections::vec_deque::IterMut::as_slices
  • alloc::collections::vec_deque::IterMut::as_mut_slices

Each of these functions obtains a pair of slices from a VecDeque iterator, similar to VecDeque::as_slices.

Public API

use std::collections::vec_deque::{Iter, IterMut};

impl<'a, T> Iter<'a, T> {
    pub fn as_slices(&self) -> (&'a [T], &'a [T]) { ... }
}

impl<'a, T> IterMut<'a, T> {
    pub fn into_slices(self) -> (&'a mut [T], &'a mut [T]) { ... }
    pub fn as_slices(&self) -> (&[T], &[T]) { ... }
    pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T]) { ... }
}

Steps / History

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions