pub struct SessionBuilder { /* private fields */ }
Expand description
Builder for Session
.
Implementations§
Source§impl SessionBuilder
impl SessionBuilder
Sourcepub fn source_map(self, value: Arc<SourceMap>) -> Self
pub fn source_map(self, value: Arc<SourceMap>) -> Self
The source map.
Sourcepub fn evm_version(self, value: EvmVersion) -> Self
pub fn evm_version(self, value: EvmVersion) -> Self
EVM version.
Sourcepub fn stop_after(self, value: CompilerStage) -> Self
pub fn stop_after(self, value: CompilerStage) -> Self
Stop execution after the given compiler stage.
Sourcepub fn emit(self, value: BTreeSet<CompilerOutput>) -> Self
pub fn emit(self, value: BTreeSet<CompilerOutput>) -> Self
Types of output to emit.
Sourcepub fn pretty_json(self, value: bool) -> Self
pub fn pretty_json(self, value: bool) -> Self
Pretty-print any JSON output.
Sourcepub fn jobs(self, value: NonZeroUsize) -> Self
pub fn jobs(self, value: NonZeroUsize) -> Self
Number of threads to use. Already resolved to a non-zero value.
Source§impl SessionBuilder
impl SessionBuilder
Sourcepub fn with_test_emitter(self) -> Self
pub fn with_test_emitter(self) -> Self
Sets the diagnostic context to a test emitter.
Sourcepub fn with_stderr_emitter(self) -> Self
pub fn with_stderr_emitter(self) -> Self
Sets the diagnostic context to a stderr emitter.
Sourcepub fn with_stderr_emitter_and_color(self, color_choice: ColorChoice) -> Self
pub fn with_stderr_emitter_and_color(self, color_choice: ColorChoice) -> Self
Sets the diagnostic context to a stderr emitter and a color choice.
Sourcepub fn with_buffer_emitter(self, color_choice: ColorChoice) -> Self
pub fn with_buffer_emitter(self, color_choice: ColorChoice) -> Self
Sets the diagnostic context to a human emitter that emits diagnostics to a local buffer.
Sourcepub fn with_silent_emitter(self, fatal_note: Option<String>) -> Self
pub fn with_silent_emitter(self, fatal_note: Option<String>) -> Self
Sets the diagnostic context to a silent emitter.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SessionBuilder
impl !RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl !UnwindSafe for SessionBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more