MCPcopy Create free account
hub / github.com/5ocworkshop/bgraph / new

Method new

src/classes/cls_fn_data_source.rs:34–36  ·  view source on GitHub ↗

Create a new function-based data source

(func: F)

Source from the content-addressed store, hash-verified

32{
33 /// Create a new function-based data source
34 pub fn new(func: F) -> Self {
35 Self { func }
36 }
37}
38
39impl<F> DataSource for FnDataSource<F>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected