MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / maybe_nested

Method maybe_nested

load_config/src/lib.rs:16–22  ·  view source on GitHub ↗
(self, nested: bool)

Source from the content-addressed store, hash-verified

14
15impl<T: Format> MaybeNested for Data<T> {
16 fn maybe_nested(self, nested: bool) -> Self {
17 if nested {
18 self.nested()
19 } else {
20 self
21 }
22 }
23}
24
25fn load_config_file(path: &str, nested: bool, figment: Figment) -> Figment {

Callers 2

load_config_fileFunction · 0.80
search_load_configFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected