We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c822c commit 8907060Copy full SHA for 8907060
src/libcore/hash/mod.rs
@@ -234,6 +234,16 @@ pub trait BuildHasher {
234
type Hasher: Hasher;
235
236
/// Creates a new hasher.
237
+ ///
238
+ /// # Examples
239
240
+ /// ```
241
+ /// use std::collections::hash_map::RandomState;
242
+ /// use std::hash::BuildHasher;
243
244
+ /// let s = RandomState::new();
245
+ /// let new_s = s.build_hasher();
246
247
#[stable(since = "1.7.0", feature = "build_hasher")]
248
fn build_hasher(&self) -> Self::Hasher;
249
}
0 commit comments