ustr icon indicating copy to clipboard operation
ustr copied to clipboard

Check if key in UstrMap without creating new ustr

Open sharon8811 opened this issue 1 year ago • 1 comments

We need a way to check if key is in the UstrMap without actually creating ustr, think of a user input and i want to check if the search term is in the map i will need to keep this user input string in memory forever If we had a way to check without creating the ustr in memory it would have been perfect

sharon8811 avatar Feb 05 '24 11:02 sharon8811

You could use the raw entry API from HashMap(use hashbrown::HashMap instead in stable Rust).

orzogc avatar May 02 '24 08:05 orzogc