INNER CODE UNIT · Rust

get_bool

gosub-io/gosub-engine · crates/gosub_config/src/lib.rs:217

    pub fn get_bool(&self, key: &str) -> bool {
        self.typed_get(key, false, Setting::to_bool)
    }

    /// Reads an unsigned integer setting, returning `0` on unknown key or storage error.
    #[must_use]
    pub fn get_uint(&self, key: &str) -> usize {
        self.typed_get(key, 0, Setting::to_uint)
    }

    /// Reads a signed integer setting, returning `0` on unknown key or storage error.
    #[must_use]
    pub fn get_sint(&self, key: &str) -> isize {
        self.typed_get(key, 0, Setting::to_sint)
    }

    /// Reads a float setting, returning `0.0` on unknown key or storage error.
    #[must_use]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…