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

Method new

crates/opencode-provider/src/provider.rs:288–293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286
287impl ProviderRegistry {
288 pub fn new() -> Self {
289 Self {
290 providers: HashMap::new(),
291 provider_info: HashMap::new(),
292 }
293 }
294
295 pub fn register<P: Provider + 'static>(&mut self, provider: P) {
296 let id = provider.id().to_string();

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected