impl gen hash for enums

This commit is contained in:
Yoshua Wuyts 2021-08-10 11:59:41 +02:00
parent e652545472
commit ec2535e9ce
3 changed files with 85 additions and 0 deletions

View file

@ -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"]