MCPcopy Create free account
hub / github.com/PerroEngine/Perro / from_variant

Method from_variant

perro_source/api_modules/perro_resource_api/src/res_path.rs:309–311  ·  view source on GitHub ↗
(value: &Variant)

Source from the content-addressed store, hash-verified

307 fn try_from(path: &str) -> Result<Self, Self::Error> {
308 Self::try_new(path)
309 }
310}
311
312impl From<ResPathBuf> for Variant {
313 fn from(path: ResPathBuf) -> Self {
314 Variant::from(path.into_string())

Callers

nothing calls this directly

Calls 2

okMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected