We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now the contains_key define like this
contains_key
pub fn contains_key<Q>(&mut self, key: &Q) -> bool
But this function don't need update the order of element right, it only check the element is exist or not. Can we change it like this:
pub fn contains_key<Q>(&self, key: &Q) -> bool
Or add a new function like this:
pub fn contains_key_mut<Q>(&mut self, key: &Q) -> bool pub fn contains_key<Q>(&self, key: &Q) -> bool
Like standard HashMap: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.contains_key
The text was updated successfully, but these errors were encountered:
I have no earthly idea why that method takes &mut self, fixing it.
&mut self
Sorry, something went wrong.
83c137e
Can you publish a new release? i want to use this feature. thank you.
I'll make a release soon and leave this issue open until I do
No branches or pull requests
Now the
contains_key
define like thisBut this function don't need update the order of element right, it only check the element is exist or not. Can we change it like this:
Or add a new function like this:
Like standard HashMap: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.contains_key
The text was updated successfully, but these errors were encountered: