Struct leo_errors::emitter::BufferEmitter
source · pub struct BufferEmitter(_, _);Expand description
An Emitter that collects into a list.
Implementations§
source§impl 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§
source§impl Clone for BufferEmitter
impl Clone for BufferEmitter
source§fn clone(&self) -> BufferEmitter
fn clone(&self) -> BufferEmitter
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 Default for BufferEmitter
impl Default for BufferEmitter
source§fn default() -> BufferEmitter
fn default() -> BufferEmitter
Returns the “default value” for a type. Read more
source§impl Emitter for BufferEmitter
impl Emitter for BufferEmitter
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 !RefUnwindSafe for BufferEmitter
impl !Send for BufferEmitter
impl !Sync for BufferEmitter
impl Unpin for BufferEmitter
impl !UnwindSafe for BufferEmitter
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