Struct leo_errors::emitter::BufferEmitter
source · pub struct BufferEmitter(_, _);Expand description
An Emitter that collects into a list.
Implementations
sourceimpl BufferEmitter
impl BufferEmitter
sourcepub fn extract_errs(&self) -> ErrBuffer
pub fn extract_errs(&self) -> ErrBuffer
Extracts all the errors collected in this emitter.
sourcepub fn extract_warnings(&self) -> WarningBuffer
pub fn extract_warnings(&self) -> WarningBuffer
Extracts all the errors collected in this emitter.
Trait Implementations
sourceimpl Clone for BufferEmitter
impl Clone for BufferEmitter
sourcefn clone(&self) -> BufferEmitter
fn clone(&self) -> BufferEmitter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Default for BufferEmitter
impl Default for BufferEmitter
sourcefn default() -> BufferEmitter
fn default() -> BufferEmitter
Returns the “default value” for a type. Read more
sourceimpl Emitter for BufferEmitter
impl Emitter for BufferEmitter
sourcefn last_emitted_err_code(&self) -> Option<i32>
fn last_emitted_err_code(&self) -> Option<i32>
Tracks last emitted error.
sourcefn emit_warning(&mut self, warning: LeoWarning)
fn emit_warning(&mut self, warning: LeoWarning)
Emit the warning.
Auto Trait Implementations
impl !RefUnwindSafe for BufferEmitter
impl !Send for BufferEmitter
impl !Sync for BufferEmitter
impl Unpin for BufferEmitter
impl !UnwindSafe for BufferEmitter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more