rollup merge of #23652: alexcrichton/stabilize-hasher-finish
This commit enables writing a stable implementation of the `Hasher` trait as well as actually calculating the hash of a vlaue in a stable fashion. The signature is stabilized as-is.
This commit is contained in:
commit
1588caca61
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ pub trait Hash {
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait Hasher {
|
pub trait Hasher {
|
||||||
/// Completes a round of hashing, producing the output hash generated.
|
/// Completes a round of hashing, producing the output hash generated.
|
||||||
#[unstable(feature = "hash", reason = "module was recently redesigned")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
fn finish(&self) -> u64;
|
fn finish(&self) -> u64;
|
||||||
|
|
||||||
/// Writes some data into this `Hasher`
|
/// Writes some data into this `Hasher`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue