Skip to content

core::vec is missing methods for mutable slices #5984

@brson

Description

@brson
Contributor

There just aren't any implementations on &mut [T] at all. mut_slice is an obvious one. also swap. I could also use a method for copying elements from one &[T] to an &mut [T].

Activity

ntrel

ntrel commented on Apr 26, 2013

@ntrel
brson

brson commented on May 10, 2013

@brson
ContributorAuthor

@ntrel that's a function though, so must be used like vec::mut_slice(foo, ...), when I would prefer to use it like foo.mut_slice(...)

brson

brson commented on May 12, 2013

@brson
ContributorAuthor

Nominating backward compat

graydon

graydon commented on May 16, 2013

@graydon
Contributor

accepted for backwards-compatible milestone

added a commit that references this issue on May 29, 2013
e0d6486
added a commit that references this issue on May 29, 2013
562069c
added a commit that references this issue on Sep 10, 2020
added 2 commits that reference this issue on Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @graydon@brson@ntrel

        Issue actions

          core::vec is missing methods for mutable slices · Issue #5984 · rust-lang/rust