themes/dark.yaml 9 themes
main.rs
config.rs
lib.rs
theme.yaml
12345678910111213141516171819202122232425262728
use std::collections::HashMap;

/// A configuration manager
pub struct Config {
    values: HashMap<String, String>,
    readonly: bool,
}

impl Config {
    pub fn new() -> Self {
        Self {
            values: HashMap::new(),
            readonly: false,
        }
    }

    pub fn get(&self, key: &str) -> Option<&String> {
        self.values.get(key) // lookup
    }
}

fn main() {
    let config = Config::new();
    let count: u32 = 42;
    println!("Ready: {}", count);
}
Default Dark
Ln 18, Col 39 30 Ln
Drop theme YAML to import