pub trait GgufMeta {
// Required methods
fn get_u64(&self, key: &str) -> Option<u64>;
fn get_f64(&self, key: &str) -> Option<f64>;
fn get_str(&self, key: &str) -> Option<&str>;
fn get_arr_len(&self, key: &str) -> Option<usize>;
// Provided methods
fn get_u64_arr(&self, _key: &str) -> Option<Vec<u64>> { ... }
fn get_f64_arr(&self, _key: &str) -> Option<Vec<f64>> { ... }
}Expand description
2026-09-26: Typed read access to GGUF metadata. Integer getters widen to u64 and float
getters to f64. A getter returns None when the key is absent or holds another value
type; the builder decides whether absence is an error or has a fallback.