Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
312
impl From<ResPathBuf> for Variant {
313
fn from(path: ResPathBuf) -> Self {
314
Variant::from(path.into_string())
Callers
nothing calls this directly
Calls
2
ok
Method · 0.80
as_str
Method · 0.45
Tested by
no test coverage detected