pub struct Options {
pub language: Language,
pub numeric_order: Option<NumericOrder>,
pub default_century: Option<u16>,
}Expand description
Caller-supplied context. Everything is optional; the defaults never guess.
Fields§
§language: LanguagePattern-table language. Defaults to English.
numeric_order: Option<NumericOrder>Resolves the DD/MM vs MM/DD ambiguity (N5). Overrides any
locale-implied order. None (default) reports both readings.
default_century: Option<u16>Century base year for bare decades: Some(1900) reads “the 80s” as
198X (N6). None (default) reports the plausible readings.
Domain is 0..=9999 (the value’s century is used); values above 9999
are ignored as if unset.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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