pub struct TransformOptions {
pub print_ir_before_all: bool,
pub writer: Shared<dyn Write + Send>,
/* private fields */
}
Fields§
§print_ir_before_all: bool
Print the IR before each pass.
print-ir-after-all
is not implemented because I don’t see when it
would be useful. print-ir-before-all
is useful to see the IR after
parsing, but seeing the IR after the last pass is already the final
output.
writer: Shared<dyn Write + Send>
Implementations§
Source§impl TransformOptions
impl TransformOptions
pub fn from_args(matches: ArgMatches, passes: Passes) -> TransformOptions
pub fn from_passes(passes: Passes) -> TransformOptions
pub fn passes(&self) -> &Passes
Auto Trait Implementations§
impl Freeze for TransformOptions
impl !RefUnwindSafe for TransformOptions
impl !Send for TransformOptions
impl !Sync for TransformOptions
impl Unpin for TransformOptions
impl !UnwindSafe for TransformOptions
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> 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