Home
last modified time | relevance | path

Searched refs:ParseErrorKind (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/chrono/src/format/
Dmod.rs321 pub struct ParseError(ParseErrorKind);
325 enum ParseErrorKind { enum
361 ParseErrorKind::OutOfRange => write!(f, "input is out of range"), in fmt()
362 ParseErrorKind::Impossible => write!(f, "no possible date and time matching input"), in fmt()
363 ParseErrorKind::NotEnough => write!(f, "input is not enough for unique date and time"), in fmt()
364 ParseErrorKind::Invalid => write!(f, "input contains invalid characters"), in fmt()
365 ParseErrorKind::TooShort => write!(f, "premature end of input"), in fmt()
366 ParseErrorKind::TooLong => write!(f, "trailing input"), in fmt()
367 ParseErrorKind::BadFormat => write!(f, "bad or unsupported format string"), in fmt()
381 const OUT_OF_RANGE: ParseError = ParseError(ParseErrorKind::OutOfRange);
[all …]
Dparse.rs15 use super::{ParseError, ParseErrorKind, ParseResult};
487 Err((remainder, e)) if e.0 == ParseErrorKind::TooLong => { in from_str()
Dparsed.rs592 use super::ParseErrorKind::{Impossible, OutOfRange}; in to_naive_datetime_with_offset()