Struct chrono_utils::parser::error::ParseError
[−]
[src]
pub struct ParseError { pub error_kind: ParseErrorKind, pub position_begin: usize, pub position_end: usize, }
An error from the parse_* functions.
Fields
error_kind: ParseErrorKind
Kind of parse error.
position_begin: usize
Start of error position.
position_end: usize
End of error position.
Methods
impl ParseError
[src]
fn invalid(
error_kind: ParseErrorKind,
position: usize,
length: usize
) -> ParseError
[src]
error_kind: ParseErrorKind,
position: usize,
length: usize
) -> ParseError
Returns error.
fn invalid_format(position: usize, length: usize) -> ParseError
[src]
Returns error due the invalid format.
fn invalid_token(position: usize, length: usize) -> ParseError
[src]
Returns error due the invalid token.
fn invalid_low_value(position: usize, length: usize) -> ParseError
[src]
Returns error due the value is too low.
fn invalid_high_value(position: usize, length: usize) -> ParseError
[src]
Returns error due the value is too high.
Trait Implementations
impl Copy for ParseError
[src]
impl Clone for ParseError
[src]
fn clone(&self) -> ParseError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for ParseError
[src]
fn eq(&self, __arg_0: &ParseError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ParseError) -> bool
[src]
This method tests for !=
.
impl Eq for ParseError
[src]
impl Debug for ParseError
[src]
impl Error for ParseError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more