Skip to content

Add more methods#17

Open
AsafMah wants to merge 1 commit into
contain-rs:masterfrom
AsafMah:master
Open

Add more methods#17
AsafMah wants to merge 1 commit into
contain-rs:masterfrom
AsafMah:master

Conversation

@AsafMah
Copy link
Copy Markdown

@AsafMah AsafMah commented Apr 18, 2022

Added

/// Insert `item` after the cursor
pub fn insert_after(&mut self, item: T);
/// Insert `item` before the cursor
pub fn insert_before(&mut self, item: T);

/// Remove the current item. The new current item is the item following the
/// removed one.
pub fn remove_current(&mut self) -> Option<T>;

From the RFC, that were left as an exercise to the reader (I'm a reader).

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.

1 participant