Skip to content

Return Option rather than fail on empty vectors. #11733

Closed
@SimonSapin

Description

@SimonSapin

#11129 changed the shift, pop and last methods of vectors to return an Option instead of failing on empty vectors. These methods should probably get the same change, to be consistent

  • shift_ref
  • pop_ref
  • mut_last
  • mut_shift_ref
  • mut_pop_ref

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions