[−][src]Struct dtparse::ParserInfo
Container for specific tokens to be recognized during parsing.
jump: Values that indicate the end of a token for parsing and can be ignoredweekday: Names of the days of the weekmonths: Names of the monthshms: Names for the units of time - hours, minutes, seconds in Englishampm: AM and PM tokensutczone: Tokens indicating a UTC-timezone stringpertain: Tokens indicating a "belongs to" relationship; in English this is just "of"tzoffset:dayfirst: Upon encountering an ambiguous date, treat the first value as the dayyearfirst: Upon encountering an ambiguous date, treat the first value as the yearyear: The current yearcentury: The first year in the current century
Please note that if both dayfirst and yearfirst are true, years take precedence
and will be parsed as "YDM"
Fields
jump: HashMap<String, usize>Tokens that can be safely ignored
weekday: HashMap<String, usize>Names of all seven weekdays
months: HashMap<String, usize>Names of all twelve months
hms: HashMap<String, usize>Tokens to indicate a value is in units of hours, minutes, or seconds
ampm: HashMap<String, usize>Tokens to indicate a value refers to AM or PM time
utczone: HashMap<String, usize>Tokens to indicate our timestamp is in the UTC timezone
pertain: HashMap<String, usize>Tokens to indicate values "belonging" to other tokens (e.g. 3rd of March)
tzoffset: HashMap<String, usize>Map of timezone names to their offset in seconds
dayfirst: boolFor ambiguous year/month/day values, and dayfirst was not specified as
an argument to Parser, treat the first observed value as the day.
yearfirst: boolFor ambiguous year/month/day values, and dayfirst was not specified as
an argument to Parser, treat the first observed value as the day.
Takes priority over dayfirst
year: i32The current year we are parsing values for
century: i32The current year we are parsing values for modulo 100
Trait Implementations
impl Debug for ParserInfo[src]
impl Default for ParserInfo[src]
impl PartialEq<ParserInfo> for ParserInfo[src]
fn eq(&self, other: &ParserInfo) -> bool[src]
fn ne(&self, other: &ParserInfo) -> bool[src]
impl StructuralPartialEq for ParserInfo[src]
Auto Trait Implementations
impl RefUnwindSafe for ParserInfo
impl Send for ParserInfo
impl Sync for ParserInfo
impl Unpin for ParserInfo
impl UnwindSafe for ParserInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,