pub fn has_key(&self, k: &str) -> bool {
        if let StateChange::Set { key, .. } = self {
            key == k
        } else if let StateChange::Delete { key } = self {
            key == k
        } else {
            false
        }
    }
/// Compares StateChanges based on the key, regardless of variant
Compares StateChanges based on the key, regardless of variant
Compares StateChanges based on the key regardless of variant
pub fn has_key(&self, k: &str) -> bool {
        if let StateChange::Set { key, .. } = self {
            key == k
        } else if let StateChange::Delete { key } = self {
            key == k
        } else {
            false
        }
    }
pub fn has_key ( & self , k : & str ) -> bool { if let StateChange :: Set { key , .. } = self { key == k } else if let StateChange :: Delete { key } = self { key == k } else { false } }
Compares StateChanges based on the key, regardless of variant
Compares StateChanges based on the key regardless of variant
&self
k
&str
&self
k
&str