Struct quire::ErrorCollector [−][src]
pub struct ErrorCollector(_);
An internal structure to track list of errors
It's exposed only to handler of include file. Use ErrorCollector
to submit your errors from include file handler.
Methods
impl ErrorCollector
[src]
impl ErrorCollector
pub fn new() -> ErrorCollector
[src]
pub fn new() -> ErrorCollector
New error collector
pub fn add_error(&self, err: Error)
[src]
pub fn add_error(&self, err: Error)
Add another error to error collector
pub fn into_fatal(&self, err: Error) -> ErrorList
[src]
pub fn into_fatal(&self, err: Error) -> ErrorList
Adds fatal (final) error into collection and return error list
pub fn into_result<T>(&self, val: T) -> Result<T, ErrorList>
[src]
pub fn into_result<T>(&self, val: T) -> Result<T, ErrorList>
Converts collector into Ok(val)
if no errors reported, into Err
otherwise
pub fn unwrap(&self) -> ErrorList
[src]
pub fn unwrap(&self) -> ErrorList
Unwraps ErrorList from the collector
Trait Implementations
impl Clone for ErrorCollector
[src]
impl Clone for ErrorCollector
fn clone(&self) -> ErrorCollector
[src]
fn clone(&self) -> ErrorCollector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ErrorCollector
[src]
impl Debug for ErrorCollector
Auto Trait Implementations
impl !Send for ErrorCollector
impl !Send for ErrorCollector
impl !Sync for ErrorCollector
impl !Sync for ErrorCollector