pub trait PathRoot:
Default
+ Clone
+ Copy
+ Debug {
// Required method
fn compute(path: &str) -> ResolvedPath;
}Expand description
Where a resolved path string is rooted.
A marker rather than a runtime field so the rooting is fixed by the type of the config field that holds it, and cannot be lost when a config is built directly instead of deserialized.
Required Methods§
Sourcefn compute(path: &str) -> ResolvedPath
fn compute(path: &str) -> ResolvedPath
Compute the (dotted, parts) pair for an already-resolved path string.
Parts keep any # prefix: it is the explicit “object key, not array
index” hint that set_nested_value consumes when deciding container
shape, and strip_hash_prefix is applied at lookup time inside the
*_parts helpers.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".