std: Stabilize the Hasher::finish
method
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:
parent
809a554fca
commit
d97d53891d
@ -90,7 +90,7 @@ pub trait Hash {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub trait Hasher {
|
||||
/// 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;
|
||||
|
||||
/// Writes some data into this `Hasher`
|
||||
|
Loading…
x
Reference in New Issue
Block a user