Module utils

Source
Expand description

Utility functions for easy value management

Traits§

FromEcfValue
Converts an ecf::Value into a generic type
FromEcfValueMut
Mutable version of FromEcfValue

Functions§

get_bool
Returns either the value as an bool or a short error message
get_bool_mut
Returns either the value as an bool or a short error message
get_float
Returns either the value as an float or a short error message
get_float_mut
Returns either the value as an float or a short error message
get_int
Returns either the value as an int or a short error message
get_int_mut
Returns either the value as an int or a short error message
get_str
Returns either the value as an str or a short error message
get_string_mut
Returns either the value as an string or a short error message
get_value_as_type
Generic function for getting a setting value as a specific type
get_value_as_type_mut
Mutable version of get_value_as_type()