use typle::typle;
impl Hash for () {
#[inline]
fn hash<H: Hasher>(&self, _state: &mut H) {}
}
#[typle(Tuple for 1..=12)]
impl<T> Hash for T
where
T: Tuple, T<_>: Hash, T<{ T::LAST }>: ?Sized, {
#[inline]
fn hash<S: Hasher>(&self, state: &mut S) {
for typle_index!(i) in 0..T::LEN {
self[[i]].hash(state);
}
}
}