Struct reproto_core::Reporter
[−]
[src]
pub struct Reporter<'a> { /* fields omitted */ }
A reporter that processes the given error for the context.
Converting the reporter into an ErrorKind
causes it to accumulate the errors to the Context
.
Methods
impl<'a> Reporter<'a>
[src]
pub fn err<P: Into<ErrorPos>, E: Display>(self, pos: P, error: E) -> Self
[src]
pub fn info<P: Into<ErrorPos>, I: Display>(self, pos: P, info: I) -> Self
[src]
pub fn close(self) -> Option<Error>
[src]
Close the reporter, saving any reported errors to the context.