pub struct PrintCtxPass {
pub message: String,
pub to_stdout: bool,
}Fields§
§message: String§to_stdout: boolWhether we’re printing to stdout or only logging.
Implementations§
Source§impl PrintCtxPass
impl PrintCtxPass
Trait Implementations§
Source§impl TransformPass for PrintCtxPass
impl TransformPass for PrintCtxPass
fn transform_ctx(&self, ctx: &mut TransformCtx)
Source§fn should_run(&self, _options: &TranslateOptions) -> bool
fn should_run(&self, _options: &TranslateOptions) -> bool
Whether the pass should run.
Auto Trait Implementations§
impl Freeze for PrintCtxPass
impl RefUnwindSafe for PrintCtxPass
impl Send for PrintCtxPass
impl Sync for PrintCtxPass
impl Unpin for PrintCtxPass
impl UnsafeUnpin for PrintCtxPass
impl UnwindSafe for PrintCtxPass
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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