INNER CODE UNIT · Rust
get_uint
gosub-io/gosub-engine · crates/gosub_config/src/lib.rs:223
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]
pub fn get_float(&self, key: &str) -> f64 {
self.typed_get(key, 0.0, Setting::to_float)
}
/// Reads a string setting, returning an empty string on unknown key or storage error.
#[must_use]