MCPcopy Create free account
hub / github.com/base/base / eq

Method eq

crates/consensus/engine/src/task_queue/tasks/task.rs:159–167  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

157
158impl<EngineClient_: EngineClient> PartialEq for EngineTask<EngineClient_> {
159 fn eq(&self, other: &Self) -> bool {
160 matches!(
161 (self, other),
162 (Self::Insert(_), Self::Insert(_))
163 | (Self::Seal(_), Self::Seal(_))
164 | (Self::Consolidate(_), Self::Consolidate(_))
165 | (Self::Finalize(_), Self::Finalize(_))
166 )
167 }
168}
169
170impl<EngineClient_: EngineClient> Eq for EngineTask<EngineClient_> {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected