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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§