pub struct EmitContextBuilder { /* private fields */ }
Expand description
Builder for EmitContext
to provide a fluent API for customization.
Implementations§
Source§impl EmitContextBuilder
impl EmitContextBuilder
Sourcepub fn indent_step(self, indent_step: usize) -> Self
pub fn indent_step(self, indent_step: usize) -> Self
Sets the number of spaces per indentation step.
Sourcepub fn format_number_hex(self, format_number_hex: bool) -> Self
pub fn format_number_hex(self, format_number_hex: bool) -> Self
Configures whether to format numbers in hexadecimal.
Sourcepub fn verbosity(self, verbosity: EmitVerbosity) -> Self
pub fn verbosity(self, verbosity: EmitVerbosity) -> Self
Sets the verbosity mode.
Sourcepub fn indent_style(self, indent_style: IndentStyle) -> Self
pub fn indent_style(self, indent_style: IndentStyle) -> Self
Sets the indentation style.
Sourcepub fn include_ssa_versions(self, include_ssa_versions: bool) -> Self
pub fn include_ssa_versions(self, include_ssa_versions: bool) -> Self
Sets the include_ssa_versions
flag.
Sourcepub fn build(self) -> EmitContext
pub fn build(self) -> EmitContext
Builds the EmitContext
with the specified parameters.
Trait Implementations§
Source§impl Clone for EmitContextBuilder
impl Clone for EmitContextBuilder
Source§fn clone(&self) -> EmitContextBuilder
fn clone(&self) -> EmitContextBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EmitContextBuilder
impl Debug for EmitContextBuilder
Auto Trait Implementations§
impl Freeze for EmitContextBuilder
impl RefUnwindSafe for EmitContextBuilder
impl Send for EmitContextBuilder
impl Sync for EmitContextBuilder
impl Unpin for EmitContextBuilder
impl UnwindSafe for EmitContextBuilder
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