impl gen hash for enums
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
//! iterator: option
|
||||
//! iterators: iterator, fn
|
||||
//! default: sized
|
||||
//! hash:
|
||||
//! clone: sized
|
||||
//! copy: clone
|
||||
//! from: sized
|
||||
@@ -87,6 +88,16 @@ pub mod default {
|
||||
}
|
||||
// endregion:default
|
||||
|
||||
// region:hash
|
||||
pub mod hash {
|
||||
pub trait Hasher {}
|
||||
|
||||
pub trait Hash {
|
||||
fn hash<H: Hasher>(&self, state: &mut H);
|
||||
}
|
||||
}
|
||||
// endregion:hash
|
||||
|
||||
// region:clone
|
||||
pub mod clone {
|
||||
#[lang = "clone"]
|
||||
|
||||
Reference in New Issue
Block a user