MCPcopy Index your code
hub / github.com/encounter/objdiff / from_str

Function from_str

objdiff-gui/src/app_config.rs:46–55  ·  view source on GitHub ↗
(str: &str)

Source from the content-addressed store, hash-verified

44}
45
46fn from_str<T>(str: &str) -> Option<T>
47where T: serde::de::DeserializeOwned {
48 match ron::from_str(str) {
49 Ok(config) => Some(config),
50 Err(err) => {
51 log::warn!("Failed to decode config: {err}");
52 None
53 }
54 }
55}
56
57#[derive(serde::Deserialize, serde::Serialize)]
58pub struct ScratchConfigV2 {

Callers 7

set_propertyMethod · 0.85
get_propertyMethod · 0.85
from_arg_valueMethod · 0.85
apply_project_optionsFunction · 0.85
from_arg_valueMethod · 0.85
apply_config_argsFunction · 0.85
from_optionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected