Skip to content

Deque: add try_push_back/try_push_front methods - #17

Open
cavemanloverboy wants to merge 1 commit into
Ellipsis-Labs:masterfrom
cavemanloverboy:try-deque-methods
Open

Deque: add try_push_back/try_push_front methods#17
cavemanloverboy wants to merge 1 commit into
Ellipsis-Labs:masterfrom
cavemanloverboy:try-deque-methods

Conversation

@cavemanloverboy

Copy link
Copy Markdown
Collaborator

Presently, Deque::push_back() just panics if full.

Of course, developers can add a length check themselves; but as is customary in the rust ecosystem, the try_* variants can be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants