(&self, other: &Encoding)
| 71 | |
| 72 | impl PartialEq for Encoding { |
| 73 | fn eq(&self, other: &Encoding) -> bool { |
| 74 | // strip qualifiers when comparing |
| 75 | let s = self.as_str().trim_left_matches(QUALIFIERS); |
| 76 | let o = other.as_str().trim_left_matches(QUALIFIERS); |
| 77 | s == o |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | impl fmt::Debug for Encoding { |