pub struct CompiledLocale {Show 23 fields
pub id: u16,
pub code: String,
pub date_order: DateOrder,
pub months: FxHashMap<String, u8>,
pub weekdays: FxHashMap<String, u8>,
pub am: FxHashSet<String>,
pub pm: FxHashSet<String>,
pub units: FxHashMap<String, TimeUnit>,
pub ago: FxHashSet<String>,
pub in_words: FxHashSet<String>,
pub skip: FxHashSet<String>,
pub relative_exact: FxHashMap<String, Vec<RelativeSpec>>,
pub relative_affix: Vec<RelativeAffix>,
pub word_numbers: FxHashMap<String, u32>,
pub time_of_day: FxHashMap<String, u8>,
pub folded_months: FxHashMap<String, u8>,
pub folded_weekdays: FxHashMap<String, u8>,
pub folded_units: FxHashMap<String, TimeUnit>,
pub folded_ago: FxHashSet<String>,
pub folded_in_words: FxHashSet<String>,
pub folded_relative_exact: FxHashMap<String, Vec<RelativeSpec>>,
pub folded_relative_affix: Vec<RelativeAffix>,
pub folded_time_of_day: FxHashMap<String, u8>,
}Fields§
§id: u16§code: String§date_order: DateOrder§months: FxHashMap<String, u8>§weekdays: FxHashMap<String, u8>§am: FxHashSet<String>§pm: FxHashSet<String>§units: FxHashMap<String, TimeUnit>§ago: FxHashSet<String>§in_words: FxHashSet<String>§skip: FxHashSet<String>§relative_exact: FxHashMap<String, Vec<RelativeSpec>>§relative_affix: Vec<RelativeAffix>§word_numbers: FxHashMap<String, u32>§time_of_day: FxHashMap<String, u8>§folded_months: FxHashMap<String, u8>§folded_weekdays: FxHashMap<String, u8>§folded_units: FxHashMap<String, TimeUnit>§folded_ago: FxHashSet<String>§folded_in_words: FxHashSet<String>§folded_relative_exact: FxHashMap<String, Vec<RelativeSpec>>§folded_relative_affix: Vec<RelativeAffix>§folded_time_of_day: FxHashMap<String, u8>Trait Implementations§
Auto Trait Implementations§
impl Forget for CompiledLocale
impl Freeze for CompiledLocale
impl Move for CompiledLocale
impl RefUnwindSafe for CompiledLocale
impl Send for CompiledLocale
impl Sync for CompiledLocale
impl Unpin for CompiledLocale
impl UnsafeUnpin for CompiledLocale
impl UnwindSafe for CompiledLocale
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more