Skip to main content

expected

Function expected 

Source
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.