[go: up one dir, main page]

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

contains should allow borrowed types #82

Open
djugei opened this issue Dec 31, 2023 · 1 comment · May be fixed by #83
Open

contains should allow borrowed types #82

djugei opened this issue Dec 31, 2023 · 1 comment · May be fixed by #83

Comments

@djugei
Copy link
djugei commented Dec 31, 2023

xorf/src/lib.rs

Line 119 in 108d679

fn contains(&self, key: &Type) -> bool;

it would be cool if one could query a Filter<Box<T>> using .contains(&T) instead of .contains(&Box<T>).

std achieves this by using the Borrow Trait.

this is a breaking change and requires a major release.

if the maintainers would like to have this feature i am willing to implement it.

@ayazhafiz
Copy link
Owner
ayazhafiz commented Dec 31, 2023 via email

@djugei djugei linked a pull request Jan 3, 2024 that will close this issue
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 a pull request may close this issue.

2 participants