rustc_session::session

Trait RemapFileNameExt

source
pub trait RemapFileNameExt {
    type Output<'a>
       where Self: 'a;

    // Required method
    fn for_scope(
        &self,
        sess: &Session,
        scope: RemapPathScopeComponents,
    ) -> Self::Output<'_>;
}

Required Associated Types§

source

type Output<'a> where Self: 'a

Required Methods§

source

fn for_scope( &self, sess: &Session, scope: RemapPathScopeComponents, ) -> Self::Output<'_>

Returns a possibly remapped filename based on the passed scope and remap cli options.

One and only one scope should be passed to this method, it will panic otherwise.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl RemapFileNameExt for FileName

source§

type Output<'a> = FileNameDisplay<'a>

source§

fn for_scope( &self, sess: &Session, scope: RemapPathScopeComponents, ) -> Self::Output<'_>

source§

impl RemapFileNameExt for RealFileName

source§

type Output<'a> = &'a Path

source§

fn for_scope( &self, sess: &Session, scope: RemapPathScopeComponents, ) -> Self::Output<'_>

Implementors§