MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-util/src/util.rs:52–54  ·  view source on GitHub ↗
(f: F)

Source from the content-addressed store, hash-verified

50
51 impl<F: FnOnce()> Defer<F> {
52 pub fn new(f: F) -> Self {
53 Self { f: Some(f) }
54 }
55 }
56
57 impl<F: FnOnce()> Drop for Defer<F> {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected