Skip to main content

IncludeProjectDirectoryResolver

Trait IncludeProjectDirectoryResolver 

Source
pub trait IncludeProjectDirectoryResolver {
    // Required method
    fn resolve_project_directory(
        &self,
        request: &IncludeProjectDirectoryRequest<'_>,
    ) -> Result<IncludeProjectDirectoryResolution, IncludeProjectDirectoryResolveError>;
}
Expand description

The only caller-owned policy boundary for explicit include project directories.

Required Methods§

Source

fn resolve_project_directory( &self, request: &IncludeProjectDirectoryRequest<'_>, ) -> Result<IncludeProjectDirectoryResolution, IncludeProjectDirectoryResolveError>

Resolves or defers one explicit include project_directory declaration.

Implementations decide whether raw declarations are relative, absolute, opaque, URI-like, or otherwise valid. ComposeLens does not join, normalize, canonicalize, open, or inspect any path.

§Errors

Returns IncludeProjectDirectoryResolveError::Unresolved when caller policy cannot authorize an effective directory for the explicit declaration.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§