Skip to content

[FEATURE] Support Insertion of Elements at End #11

Description

@Rohan-GRH

Hi!

Thanks for reviewing issues #9 and #10. As a non-native speaker, I did use LLMs to craft these issues, but they have been manually reviewed before reporting. I understand these issues may be controversial. That's why I would like to discuss them with you.

For the issue, could the documentation explicitly state that StackVec::insert intentionally requires index < len and does not support tail insertion at index == len, so users should call push for that case? I understand this is rather subtle. However, it would be better if there were no potential for misinterpretation. For context, Vec::insert allows 'index == len'. Thank you for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions