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

Class FDisplay

crates/codegen/src/util.rs:39–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37/// Turns a closure `f: Fn(&mut Formatter) -> Result` into `fmt::Display`.
38pub(super) fn fmt_fn(f: impl Fn(&mut Formatter) -> Result) -> impl Display {
39 struct FDisplay<F>(F);
40 impl<F: Fn(&mut Formatter) -> Result> Display for FDisplay<F> {
41 fn fmt(&self, f: &mut Formatter<'_>) -> Result {
42 (self.0)(f)

Callers 1

fmt_fnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…