pub trait CacheableContext: Any {
// Required method
fn project_root(&self) -> Option<&Path>;
}Required Methods§
Sourcefn project_root(&self) -> Option<&Path>
fn project_root(&self) -> Option<&Path>
Returns the project root used for portable path conversion.
Some enables portable conversion relative to this root, while None keeps paths in their
native representation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".