Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordyceps: more cursor operations #224

Closed
hawkw opened this issue Jun 18, 2022 · 0 comments
Closed

cordyceps: more cursor operations #224

hawkw opened this issue Jun 18, 2022 · 0 comments

Comments

@hawkw
Copy link
Owner

hawkw commented Jun 18, 2022

it would be nice if the intrusive linked list cursor implemented all the methods on std::collections::linked_list::Cursor

hawkw added a commit that referenced this issue Jun 18, 2022
This adds `peek_next` and `peek_prev` methods to
`cordyceps::list::Cursor`, similar to the methods on
`std::collections::linked_list::Cursor`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::remove_current` method, similar to the one on
`std::collections::linked_list::CursorMut`. I also reimplemented
`remove_first` to use this.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `Cursor::current` and `Cursor::current_mut` methods, similar
to the ones on `std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `peek_next` and `peek_prev` methods to
`cordyceps::list::Cursor`, similar to the methods on
`std::collections::linked_list::Cursor`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::remove_current` method, similar to the one on
`std::collections::linked_list::CursorMut`. I also reimplemented
`remove_first` to use this.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::remove_current` method, similar to the one on
`std::collections::linked_list::CursorMut`. I also reimplemented
`remove_first` to use this.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `List::cursor_back_mut` returning a mutable cursor at the back
of the list.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::index` method to match the one on
`std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `Cursor::insert_before` and `Cursor::insert_after` methods to
match the ones on `std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
@hawkw hawkw closed this as completed in 9edf815 Jun 18, 2022
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `peek_next` and `peek_prev` methods to
`cordyceps::list::Cursor`, similar to the methods on
`std::collections::linked_list::Cursor`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::remove_current` method, similar to the one on
`std::collections::linked_list::CursorMut`. I also reimplemented
`remove_first` to use this.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::remove_current` method, similar to the one on
`std::collections::linked_list::CursorMut`. I also reimplemented
`remove_first` to use this.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `List::cursor_back_mut` returning a mutable cursor at the back
of the list.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::index` method to match the one on
`std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `Cursor::insert_before` and `Cursor::insert_after` methods to
match the ones on `std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `List::cursor_back_mut` returning a mutable cursor at the back
of the list.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds a `Cursor::index` method to match the one on
`std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 18, 2022
This adds `Cursor::insert_before` and `Cursor::insert_after` methods to
match the ones on `std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 21, 2022
This adds `List::cursor_back_mut` returning a mutable cursor at the back
of the list.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 21, 2022
This adds a `Cursor::index` method to match the one on
`std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
hawkw added a commit that referenced this issue Jun 21, 2022
This adds `Cursor::insert_before` and `Cursor::insert_after` methods to
match the ones on `std::collections::linked_list::CursorMut`.

Closes #224

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
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

No branches or pull requests

1 participant