MCPcopy Create free account
hub / github.com/cosdata/cosdata / fmt

Method fmt

src/config_loader.rs:73–78  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

71
72impl std::fmt::Display for Host {
73 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
74 match self {
75 Host::Ip(ip) => ip.fmt(f),
76 Host::Hostname(s) => write!(f, "{s}"),
77 }
78 }
79}
80
81impl<'de> Deserialize<'de> for Host {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected