pub struct Parser<'a, Tz: TimeZone + 'a> { /* private fields */ }
Implementations§
Source§impl<'a, Tz: TimeZone + 'a> Parser<'a, Tz>
impl<'a, Tz: TimeZone + 'a> Parser<'a, Tz>
pub fn new(tz: Tz) -> Self
pub fn parser( self, parser_func: Box<&'a dyn Fn(DateTime<Tz>, &'a str, bool) -> Vec<Result<MatchResult, DateTimeError>>>, ) -> Self
pub fn max_dist(self, max_dist: usize) -> Self
pub fn fuzzy_parse(self, fuzzy_parse: bool) -> Self
pub fn get_tz(&self) -> &Tz
pub fn parse(&self, input: &'a str) -> Vec<Result<DateTime<Tz>, DateTimeError>>
pub fn parse_fixed_time( &self, now: NaiveDateTime, input: &'a str, ) -> Vec<Result<DateTime<Tz>, DateTimeError>>
Auto Trait Implementations§
impl<'a, Tz> Freeze for Parser<'a, Tz>where
Tz: Freeze,
impl<'a, Tz> !RefUnwindSafe for Parser<'a, Tz>
impl<'a, Tz> !Send for Parser<'a, Tz>
impl<'a, Tz> !Sync for Parser<'a, Tz>
impl<'a, Tz> Unpin for Parser<'a, Tz>where
Tz: Unpin,
impl<'a, Tz> !UnwindSafe for Parser<'a, Tz>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more