Due to #12224, implementing this trait for a closure will require this to use `&mut self` instead of `&self`. It looks like it'd be a pretty easy drop-in adjustment though (see modifications in #13686 to the `CharEq` trait for an example)