MCPcopy Create free account
hub / github.com/SSheldon/rust-objc / eq

Method eq

src/encode.rs:73–78  ·  view source on GitHub ↗
(&self, other: &Encoding)

Source from the content-addressed store, hash-verified

71
72impl 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
81impl fmt::Debug for Encoding {

Callers

nothing calls this directly

Calls 1

as_strMethod · 0.80

Tested by

no test coverage detected