INNER CODE UNIT · Rust

max_expiry_index

szabodanika/microbin · src/args.rs:182

    pub fn max_expiry_index(&self) -> usize {
        let options = &[
            "1min",
            "10min",
            "1hour",
            "24hour",
            "3days",
            "1week",
            "1month",
            "6months",
            "1year",
            "2years",
            "4years",
            "8years",
            "16years",
            "never",
        ];
        options.iter().position(|&x| x == self.max_expiry).unwrap_or(5)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…