MCPcopy Create free account
hub / github.com/chanced/jsonptr / partial_eq

Function partial_eq

src/pointer.rs:2164–2188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2162 #[test]
2163 #[allow(clippy::cmp_owned, unused_must_use)]
2164 fn partial_eq() {
2165 let ptr_string = String::from("/bread/crumbs");
2166 let ptr_str = "/bread/crumbs";
2167 let ptr = Pointer::from_static(ptr_str);
2168 let ptr_buf = ptr.to_buf();
2169 <&Pointer as PartialEq<&Pointer>>::eq(&ptr, &ptr);
2170 <Pointer as PartialEq<&str>>::eq(ptr, &ptr_str);
2171 <&Pointer as PartialEq<String>>::eq(&ptr, &ptr_string);
2172 <Pointer as PartialEq<String>>::eq(ptr, &ptr_string);
2173 <Pointer as PartialEq<PointerBuf>>::eq(ptr, &ptr_buf);
2174 <&str as PartialEq<Pointer>>::eq(&ptr_str, ptr);
2175 <String as PartialEq<Pointer>>::eq(&ptr_string, ptr);
2176 <str as PartialEq<Pointer>>::eq(ptr_str, ptr);
2177 <PointerBuf as PartialEq<str>>::eq(&ptr_buf, ptr_str);
2178 <PointerBuf as PartialEq<PointerBuf>>::eq(&ptr_buf, &ptr_buf);
2179 <PointerBuf as PartialEq<Pointer>>::eq(&ptr_buf, ptr);
2180 <Pointer as PartialEq<PointerBuf>>::eq(ptr, &ptr_buf);
2181 <PointerBuf as PartialEq<&Pointer>>::eq(&ptr_buf, &ptr);
2182 <PointerBuf as PartialEq<&str>>::eq(&ptr_buf, &ptr_str);
2183 <PointerBuf as PartialEq<String>>::eq(&ptr_buf, &ptr_string);
2184 <&Pointer as PartialEq<PointerBuf>>::eq(&ptr, &ptr_buf);
2185 <str as PartialEq<PointerBuf>>::eq(ptr_str, &ptr_buf);
2186 <&str as PartialEq<PointerBuf>>::eq(&ptr_str, &ptr_buf);
2187 <String as PartialEq<PointerBuf>>::eq(&ptr_string, &ptr_buf);
2188 }
2189
2190 #[test]
2191 fn partial_ord() {

Callers

nothing calls this directly

Calls 2

fromFunction · 0.85
to_bufMethod · 0.80

Tested by

no test coverage detected