Skip to content

Convert all uses of vec::slice to vec::view #3869

Closed
@bstrie

Description

@bstrie
16:38 <@nmatsakis> of course we plan to remove vec::slice()
16:38 <@nmatsakis> but no one has done it yet :)
16:39 <@nmatsakis> vec::view(x, 0, 5).to_vec()
16:39 <@nmatsakis> is basically equivalent to vec::slice(x, 0, 5) today
16:45 < bstrie> nmatsakis: is that the extent of the transformation required to go from slice to view?
16:46 <@nmatsakis> bstrie: I believe so
16:46 < bstrie> is vec::view also defined as a method on the same types that vec::slice is defined on?
16:47 <@nmatsakis> yes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions