pub fn expected<T>(ty: &str, key: &ConfigKey, val: &ConfigValue) -> Result<T>Expand description
Generate an error when the given value is the wrong type.
pub fn expected<T>(ty: &str, key: &ConfigKey, val: &ConfigValue) -> Result<T>Generate an error when the given value is the wrong type.