MCPcopy Create free account
hub / github.com/evilsocket/cake / fmt

Method fmt

cake-core/src/utils/models.rs:21–28  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

19
20impl std::fmt::Display for ModelStatus {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 match self {
23 ModelStatus::Complete => write!(f, "complete"),
24 ModelStatus::Partial { have, total } => {
25 write!(f, "partial ({}/{} shards)", have, total)
26 }
27 }
28 }
29}
30
31/// A discovered local model.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected