pub struct Configuration {
pub parsers: Vec<Box<dyn Parser>>,
pub refiners: Vec<Box<dyn Refiner>>,
pub locale: Locale,
}Expand description
Locale-specific parser configuration.
This bundles the parser and refiner pipeline that will be used by
WhichTime. Most callers should use WhichTime::new or
WhichTime::with_locale instead of constructing this directly.
Fields§
§parsers: Vec<Box<dyn Parser>>Parsers that attempt to extract date and time mentions from text.
refiners: Vec<Box<dyn Refiner>>Refiners that merge, filter, or adjust parser output.
locale: LocaleLocale that the configuration is intended for.
Auto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl !UnwindSafe for Configuration
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