MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / eq

Method eq

crates/openshell-supervisor-network/src/identity.rs:51–67  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

49
50impl PartialEq for FileFingerprint {
51 fn eq(&self, other: &Self) -> bool {
52 self.len == other.len
53 && self.mtime_sec == other.mtime_sec
54 && self.mtime_nsec == other.mtime_nsec
55 && self.ctime_sec == other.ctime_sec
56 && self.ctime_nsec == other.ctime_nsec
57 && {
58 #[cfg(unix)]
59 {
60 self.dev == other.dev && self.ino == other.ino
61 }
62 #[cfg(not(unix))]
63 {
64 true
65 }
66 }
67 }
68}
69
70#[derive(Clone)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected