mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
impl gen hash for enums
This commit is contained in:
parent
e652545472
commit
ec2535e9ce
3 changed files with 85 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue