1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::Character; impl PartialEq<char> for Character { fn eq(&self, other: &char) -> bool { self.get_char() == *other } } // impl PartialEq<Character> for char { // fn eq(&self, other: &Character) -> bool { // *self == other.get_char() // } // }