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

Method from_arg_value

objdiff-gui/src/main.rs:72–75  ·  view source on GitHub ↗
(value: &OsStr)

Source from the content-addressed store, hash-verified

70
71impl FromArgValue for LogLevel {
72 fn from_arg_value(value: &OsStr) -> Result<Self, String> {
73 String::from_arg_value(value)
74 .and_then(|s| Self::from_str(&s).map_err(|_| "Invalid log level".to_string()))
75 }
76}
77
78#[derive(FromArgs, PartialEq, Debug)]

Callers

nothing calls this directly

Calls 1

from_strFunction · 0.85

Tested by

no test coverage detected