Skip to main content

read_user_widgets

Function read_user_widgets 

Source
pub fn read_user_widgets(
    path: &Path,
) -> Result<HashMap<String, WidgetConfigType>, ConfigError>
Expand description

The user’s widgets; an absent file, or one with nothing in it but comments, is none. The file is read as JSONC, like settings.json: comments and trailing commas are allowed. A file that does not parse is an error that names its line and column.