[−][src]Struct rustc_interface::interface::Compiler
Represents a compiler session.
Can be used to run rustc_interface queries.
Created by passing Config to run_compiler.
Fields
sess: Lrc<Session>codegen_backend: Lrc<Box<dyn CodegenBackend>>input: Inputinput_path: Option<PathBuf>output_dir: Option<PathBuf>output_file: Option<PathBuf>crate_name: Option<String>register_lints: Option<Box<dyn Fn(&Session, &mut LintStore) + Send + Sync>>override_queries: Option<fn(_: &Session, _: &mut Providers, _: &mut Providers)>Implementations
impl Compiler[src]
pub fn session(&self) -> &Lrc<Session>[src]
pub fn codegen_backend(&self) -> &Lrc<Box<dyn CodegenBackend>>[src]
pub fn input(&self) -> &Input[src]
pub fn output_dir(&self) -> &Option<PathBuf>[src]
pub fn output_file(&self) -> &Option<PathBuf>[src]
pub fn build_output_filenames(
&self,
sess: &Session,
attrs: &[Attribute]
) -> OutputFilenames[src]
&self,
sess: &Session,
attrs: &[Attribute]
) -> OutputFilenames
impl Compiler[src]
Auto Trait Implementations
impl !RefUnwindSafe for Compiler
impl !Send for Compiler
impl !Sync for Compiler
impl Unpin for Compiler
impl !UnwindSafe for Compiler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,