Struct hime_redist::errors::ParseErrors
source · pub struct ParseErrors { /* private fields */ }
Expand description
Represents an entity that can handle lexical and syntactic errors
Implementations§
source§impl ParseErrors
impl ParseErrors
sourcepub fn new() -> ParseErrors
pub fn new() -> ParseErrors
Creates a new instance of the Errors structure
sourcepub fn push_error_eoi(&mut self, error: ParseErrorEndOfInput)
pub fn push_error_eoi(&mut self, error: ParseErrorEndOfInput)
Handles the end-of-input error
sourcepub fn push_error_unexpected_char(&mut self, error: ParseErrorUnexpectedChar)
pub fn push_error_unexpected_char(&mut self, error: ParseErrorUnexpectedChar)
Handles the unexpected character error
sourcepub fn push_error_unexpected_token(&mut self, error: ParseErrorUnexpectedToken)
pub fn push_error_unexpected_token(&mut self, error: ParseErrorUnexpectedToken)
Handles the unexpected token error
sourcepub fn push_error_no_low_utf16_surrogate(
&mut self,
error: ParseErrorIncorrectEncodingSequence
)
pub fn push_error_no_low_utf16_surrogate(
&mut self,
error: ParseErrorIncorrectEncodingSequence
)
Handles the incorrect encoding sequence error
sourcepub fn push_error_no_high_utf16_surrogate(
&mut self,
error: ParseErrorIncorrectEncodingSequence
)
pub fn push_error_no_high_utf16_surrogate(
&mut self,
error: ParseErrorIncorrectEncodingSequence
)
Handles the incorrect encoding sequence error
Trait Implementations§
source§impl<'a> Index<usize> for ParseErrors
impl<'a> Index<usize> for ParseErrors
Implementation of the indexer operator for immutable ParseErrors
source§impl<'a> Iterable<'a> for ParseErrors
impl<'a> Iterable<'a> for ParseErrors
Implementation of Iterable
for ParseErrors
§type Item = &'a ParseError
type Item = &'a ParseError
The type of the elements being iterated over.
§type IteratorType = ParseErrorsIterator<'a>
type IteratorType = ParseErrorsIterator<'a>
The type of the iterator.
source§fn iter(&'a self) -> Self::IteratorType
fn iter(&'a self) -> Self::IteratorType
Creates an iterator over this
Iterable
structure.