MCPcopy Create free account
hub / github.com/Recordscript/recordscript / load_

Method load_

libs/hbb_common/src/config.rs:494–503  ·  view source on GitHub ↗
(
        suffix: &str,
    )

Source from the content-addressed store, hash-verified

492
493impl Config {
494 fn load_<T: serde::Serialize + serde::de::DeserializeOwned + Default + std::fmt::Debug>(
495 suffix: &str,
496 ) -> T {
497 let file = Self::file_(suffix);
498 let cfg = load_path(file);
499 if suffix.is_empty() {
500 log::trace!("{:?}", cfg);
501 }
502 cfg
503 }
504
505 fn store_<T: serde::Serialize>(config: &T, suffix: &str) {
506 let file = Self::file_(suffix);

Callers

nothing calls this directly

Calls 2

load_pathFunction · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected