MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / fmt

Method fmt

crates/client-api/src/util.rs:158–163  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

156
157impl fmt::Display for NameOrIdentity {
158 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
159 match self {
160 Self::Identity(addr) => f.write_str(addr.into_inner().to_hex().as_str()),
161 Self::Name(name) => f.write_str(name.as_ref()),
162 }
163 }
164}
165
166pub struct EmptyBody;

Callers

nothing calls this directly

Calls 5

write_strMethod · 0.45
as_strMethod · 0.45
to_hexMethod · 0.45
into_innerMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected