Skip to content

Tracking Issue for BuildHasher::hash_one #86161

Closed
@scottmcm

Description

@scottmcm

Feature gate: #![feature(build_hasher_simple_hash_one)]

This is a tracking issue for the hash_one method on the BuildHasher trait. This is a convenience method to make it easier to get the hash of a value, such as when implementing a hash table or when writing unit tests.

Public API

pub trait BuildHasher { // existing trait
    fn hash_one<T: Hash>(&self, x: T) -> u64
    where
        Self: Sized; // new method, with provided implementation
}

Steps / History

Unresolved Questions

  • None yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.disposition-mergeThis issue / PR is in PFCP or FCP with a disposition to merge it.finished-final-comment-periodThe final comment period is finished for this PR / Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions