pub struct WhichTime { /* private fields */ }Expand description
The main natural-language date parser.
A WhichTime instance owns a locale-specific set of parsers and refiners
and can be reused across multiple parse calls.
Implementations§
Source§impl WhichTime
impl WhichTime
Sourcepub fn with_locale(locale: Locale) -> Self
pub fn with_locale(locale: Locale) -> Self
Create a parser configured for a specific locale.
Sourcepub fn with_configuration(config: Configuration) -> Self
pub fn with_configuration(config: Configuration) -> Self
Create a parser from a custom Configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WhichTime
impl !RefUnwindSafe for WhichTime
impl Send for WhichTime
impl Sync for WhichTime
impl Unpin for WhichTime
impl UnsafeUnpin for WhichTime
impl !UnwindSafe for WhichTime
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