pub struct UniversalDateParser { /* private fields */ }
Expand description
Main universal date parser
Implementations§
Source§impl UniversalDateParser
impl UniversalDateParser
Sourcepub fn with_config(config: ParserConfig) -> Self
pub fn with_config(config: ParserConfig) -> Self
Create a new parser with custom configuration
Sourcepub fn parse(&self, input: &str) -> Result<ParsedDate, ParseError>
pub fn parse(&self, input: &str) -> Result<ParsedDate, ParseError>
Parse a date string into a standardized format
Sourcepub fn parse_all_possibilities(
&self,
input: &str,
) -> Vec<Result<ParsedDate, ParseError>>
pub fn parse_all_possibilities( &self, input: &str, ) -> Vec<Result<ParsedDate, ParseError>>
Parse multiple date formats and return all possible interpretations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UniversalDateParser
impl RefUnwindSafe for UniversalDateParser
impl Send for UniversalDateParser
impl Sync for UniversalDateParser
impl Unpin for UniversalDateParser
impl UnwindSafe for UniversalDateParser
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