stable_hash/impls/
bool.rs

1use crate::prelude::*;
2
3impl StableHash for bool {
4    #[inline]
5    fn stable_hash<H: StableHasher>(&self, field_address: H::Addr, state: &mut H) {
6        profile_method!(stable_hash);
7
8        if *self {
9            state.write(field_address, &[]);
10        }
11    }
12}