MCPcopy Index your code
hub / github.com/RustPython/RustPython / eq

Method eq

crates/wtf8/src/lib.rs:216–218  ·  view source on GitHub ↗
(&self, other: &char)

Source from the content-addressed store, hash-verified

214
215impl PartialEq<char> for CodePoint {
216 fn eq(&self, other: &char) -> bool {
217 self.to_u32() == *other as u32
218 }
219}
220impl PartialEq<CodePoint> for char {
221 fn eq(&self, other: &CodePoint) -> bool {

Callers

nothing calls this directly

Calls 2

to_u32Method · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected