MCPcopy Create free account
hub / github.com/AI45Lab/Code / fmt

Method fmt

core/src/hooks/engine.rs:220–226  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

218
219impl std::fmt::Debug for HookEngine {
220 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
221 f.debug_struct("HookEngine")
222 .field("hooks_count", &read_or_recover(&self.hooks).len())
223 .field("handlers_count", &read_or_recover(&self.handlers).len())
224 .field("has_event_channel", &self.event_tx.is_some())
225 .finish()
226 }
227}
228
229impl Default for HookEngine {

Callers

nothing calls this directly

Calls 3

read_or_recoverFunction · 0.85
finishMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected