[−][src]Struct rustc_driver::RunCompiler

pub struct RunCompiler<'a, 'b> {
    at_args: &'a [String],
    callbacks: &'b mut (dyn Callbacks + Send),
    file_loader: Option<Box<dyn FileLoader + Send + Sync>>,
    emitter: Option<Box<dyn Write + Send>>,
    make_codegen_backend: Option<Box<dyn FnOnce(&Options) -> Box<dyn CodegenBackend> + Send>>,
}

Fields

at_args: &'a [String]callbacks: &'b mut (dyn Callbacks + Send)file_loader: Option<Box<dyn FileLoader + Send + Sync>>emitter: Option<Box<dyn Write + Send>>make_codegen_backend: Option<Box<dyn FnOnce(&Options) -> Box<dyn CodegenBackend> + Send>>

Implementations

impl<'a, 'b> RunCompiler<'a, 'b>[src]

pub fn new(
    at_args: &'a [String],
    callbacks: &'b mut (dyn Callbacks + Send)
) -> Self
[src]

pub fn set_make_codegen_backend(
    &mut self,
    make_codegen_backend: Option<Box<dyn FnOnce(&Options) -> Box<dyn CodegenBackend> + Send>>
) -> &mut Self
[src]

pub fn set_emitter(
    &mut self,
    emitter: Option<Box<dyn Write + Send>>
) -> &mut Self
[src]

pub fn set_file_loader(
    &mut self,
    file_loader: Option<Box<dyn FileLoader + Send + Sync>>
) -> &mut Self
[src]

pub fn run(self) -> Result<()>[src]

Auto Trait Implementations

impl<'a, 'b> !RefUnwindSafe for RunCompiler<'a, 'b>

impl<'a, 'b> Send for RunCompiler<'a, 'b>

impl<'a, 'b> !Sync for RunCompiler<'a, 'b>

impl<'a, 'b> Unpin for RunCompiler<'a, 'b>

impl<'a, 'b> !UnwindSafe for RunCompiler<'a, 'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.