pub struct StderrEmitter {
last_error_code: Option<i32>,
}
Expand description
A trivial Emitter
using the standard error.
Fields§
§last_error_code: Option<i32>
Exit code of the last emitted error.
Trait Implementations§
Source§impl Emitter for StderrEmitter
impl Emitter for StderrEmitter
Source§fn last_emitted_err_code(&self) -> Option<i32>
fn last_emitted_err_code(&self) -> Option<i32>
Tracks last emitted error.
Source§fn emit_warning(&mut self, warning: LeoWarning)
fn emit_warning(&mut self, warning: LeoWarning)
Emit the warning.
Auto Trait Implementations§
impl Freeze for StderrEmitter
impl RefUnwindSafe for StderrEmitter
impl Send for StderrEmitter
impl Sync for StderrEmitter
impl Unpin for StderrEmitter
impl UnwindSafe for StderrEmitter
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> 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