deep-time 0.1.0-beta.7

High-precision, no-std, no-alloc date-time library, leap-seconds, time scales, relativistic time, and a powerful date & duration parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::Token;
use aho_corasick::AhoCorasick;
use hashbrown::HashMap;

#[derive(Debug, Clone, Copy)]
pub(crate) struct LangData {
    /// Master lookup table: short/long term → (canonical form, token)
    pub map: &'static HashMap<&'static str, (&'static str, Token)>,
    /// Aho-Corasick for full date parsing
    pub date_ac: &'static AhoCorasick,
    /// Aho-Corasick that only contains relatives + durations
    pub duration_ac: &'static AhoCorasick,
    /// Language specific decimals separator
    pub decimal_char: char,
}