Skip to content

Make hash_bytes function public. #75

Closed
infalmo wants to merge 1 commit into
rust-lang:masterfrom
infalmo:patch-1
Closed

Make hash_bytes function public. #75
infalmo wants to merge 1 commit into
rust-lang:masterfrom
infalmo:patch-1

Conversation

@infalmo

@infalmo infalmo commented Jun 10, 2026

Copy link
Copy Markdown

Helpful for hashing raw bytes without having to construct an explicit hasher

@Noratrieb

Copy link
Copy Markdown
Member

What do you plan on using this for? I'm not sure if this is a good idea because it might steer people towards using this for things they shouldn't be using it for (#58, #59).

@scottmcm

Copy link
Copy Markdown
Member

without having to construct an explicit hasher

You can spell that as https://docs.rs/rustc-hash/latest/rustc_hash/struct.FxBuildHasher.html#method.hash_one, no?

@infalmo

infalmo commented Jun 12, 2026

Copy link
Copy Markdown
Author

Yep, just saw it already exists. Np, thanks

@infalmo infalmo closed this Jun 12, 2026
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.

3 participants