var searchIndex = {}; searchIndex["preferences"] = {"doc":"*Read and write user-specific application data*","items":[[4,"PreferencesError","preferences","Error type representing the errors that can occur when saving or loading user data.",null,null],[13,"Serialize","","An error occurred during JSON (serialization.",0,null],[13,"Deserialize","","An error occurred during JSON deserialization.",0,null],[13,"Io","","An error occurred during file I/O.",0,null],[5,"prefs_base_dir","","Get full path to the base directory for preferences.",null,{"inputs":[],"output":{"name":"option"}}],[6,"PreferencesMap","","Generic key-value store for user data.",null,null],[8,"Preferences","","Trait for types that can be saved & loaded as user data.",null,null],[10,"save","","Saves the current state of this object. Implementation is platform-dependent, but the data\nwill be local to the active user. For more details, see\n[the module documentation](index.html).",1,null],[10,"load","","Loads this object's state from previously saved user data with the same `path`. This is\nan instance method which completely overwrites the object's state with the serialized\ndata. Thus, it is recommended that you call this method immediately after instantiating\nthe preferences object.",1,null],[10,"save_to","","Same as `save`, but writes the serialized preferences to an arbitrary writer.",1,null],[10,"load_from","","Same as `load`, but reads the serialized preferences from an arbitrary writer.",1,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"encodererror"}],"output":{"name":"self"}}],[11,"from","","",0,{"inputs":[{"name":"decodererror"}],"output":{"name":"self"}}],[11,"from","","",0,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"self"}}],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"self"}}]],"paths":[[4,"PreferencesError"],[8,"Preferences"]]}; initSearch(searchIndex);