MCPcopy Create free account
hub / github.com/daisy/MathCAT / set_rules_dir

Function set_rules_dir

src/interface.rs:44–48  ·  view source on GitHub ↗

Set the Rules directory IMPORTANT: this should be the very first call to MathCAT unless the environment var MathCATRulesDir is set

(dir: String)

Source from the content-addressed store, hash-verified

42/// Set the Rules directory
43/// IMPORTANT: this should be the very first call to MathCAT unless the environment var MathCATRulesDir is set
44pub fn set_rules_dir(dir: String) -> Result<()> {
45 use std::path::PathBuf;
46 let pref_manager = crate::prefs::PreferenceManager::get();
47 return pref_manager.borrow_mut().initialize(PathBuf::from(dir));
48}
49
50/// Returns the version number (from Cargo.toml) of the build
51pub fn get_version() -> String {

Callers 15

empty_mrow_with_intentFunction · 0.85
test_intentFunction · 0.85
mainFunction · 0.85
ueb_highlight_24Function · 0.85
test_UEB_start_modeFunction · 0.85
test_entitiesFunction · 0.85
init_default_prefsFunction · 0.85
move_simple_no_timesFunction · 0.85
move_cellFunction · 0.85
drop_frac_2aFunction · 0.85

Calls 1

initializeMethod · 0.80

Tested by 12

empty_mrow_with_intentFunction · 0.68
test_intentFunction · 0.68
ueb_highlight_24Function · 0.68
test_UEB_start_modeFunction · 0.68
test_entitiesFunction · 0.68
move_simple_no_timesFunction · 0.68
move_cellFunction · 0.68
drop_frac_2aFunction · 0.68
test_prefsFunction · 0.68
test_brailleFunction · 0.68
test_braille_prefsFunction · 0.68