fn insert_characteristic(
    module: &mut Module,
    debugdata: &DebugData,
    characteristic_sym: &str,
    name_map: &HashMap<String, ItemType>,
    sym_map: &HashMap<String, ItemType>,
) -> Result<String, String> {
    // get info about the symbol from the debug data
    match crate::symbol::find_symbol(characteristic_sym, debugdata) {
        Ok((address, typeinfo)) => insert_characteristic_sym(
            module,
            characteristic_sym,
            name_map,
            sym_map,
            typeinfo,
            address,
        ),
        Err(errmsg) => Err(format!(
            "Symbol {} could not be added: {}",
            characteristic_sym, errmsg
        )),
    }
}
// Add a new CHARACTERISTIC for the given symbol
Add a new CHARACTERISTIC for the given symbol
Add a new CHARACTERISTIC for the given symbol
fn insert_characteristic(
    module: &mut Module,
    debugdata: &DebugData,
    characteristic_sym: &str,
    name_map: &HashMap<String, ItemType>,
    sym_map: &HashMap<String, ItemType>,
) -> Result<String, String> {
    // get info about the symbol from the debug data
    match crate::symbol::find_symbol(characteristic_sym, debugdata) {
        Ok((address, typeinfo)) => insert_characteristic_sym(
            module,
            characteristic_sym,
            name_map,
            sym_map,
            typeinfo,
            address,
        ),
        Err(errmsg) => Err(format!(
            "Symbol {} could not be added: {}",
            characteristic_sym, errmsg
        )),
    }
}
fn insert_characteristic ( module : & mut Module , debugdata : & DebugData , characteristic_sym : & str , name_map : & HashMap < String , ItemType > , sym_map : & HashMap < String , ItemType > , ) -> Result < String , String > { // get info about the symbol from the debug data match crate :: symbol :: find_symbol ( characteristic_sym , debugdata ) { Ok ( ( address , typeinfo ) ) => insert_characteristic_sym ( module , characteristic_sym , name_map , sym_map , typeinfo , address , ) , Err ( errmsg ) => Err ( format ! ( " " characteristic_sym errmsg ) ) , } }
Add a new CHARACTERISTIC for the given symbol
Add a new CHARACTERISTIC for the given symbol
module
&mut Module
debugdata
&DebugData
characteristic_sym
&str
name_map
&HashMap<String, ItemType>
sym_map
&HashMap<String, ItemType>