Struct sway_parse::handler::Handler
source · [−]pub struct Handler { /* private fields */ }
Expand description
A handler with which you can emit errors.
(For now these are only parser errors, but this will change in the future.)
Implementations
sourceimpl Handler
impl Handler
sourcepub fn emit_err(&self, err: ParseError)
pub fn emit_err(&self, err: ParseError)
Emit the error err
.
sourcepub fn into_errors(self) -> Vec<ParseError>
pub fn into_errors(self) -> Vec<ParseError>
Extract all the errors from this handler.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Handler
impl Send for Handler
impl !Sync for Handler
impl Unpin for Handler
impl UnwindSafe for Handler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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