Skip to main content

CacheableContext

Trait CacheableContext 

Source
pub trait CacheableContext: Any {
    // Required method
    fn project_root(&self) -> Option<&Path>;
}

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl CacheableContext for ()

Implementors§