Skip to main content

LangResolverStrategy

Trait LangResolverStrategy 

Source
pub trait LangResolverStrategy {
    // Provided methods
    fn resolve_path(
        &self,
        _target: &TargetExpr,
        _context: ResolveContext<'_>,
    ) -> Option<Resolution> { ... }
    fn resolve_builtin(
        &self,
        _name: &[u8],
        _namespace: Namespace,
        _context: ResolveContext<'_>,
    ) -> Option<Resolution> { ... }
    fn external_package_target(
        &self,
        root: &Moniker,
        package: &[u8],
        path: &[Vec<u8>],
    ) -> Moniker { ... }
}

Provided Methods§

Source

fn resolve_path( &self, _target: &TargetExpr, _context: ResolveContext<'_>, ) -> Option<Resolution>

Source

fn resolve_builtin( &self, _name: &[u8], _namespace: Namespace, _context: ResolveContext<'_>, ) -> Option<Resolution>

Source

fn external_package_target( &self, root: &Moniker, package: &[u8], path: &[Vec<u8>], ) -> Moniker

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§