fn update_instance_address<'a>(
    instance: &mut Instance,
    debug_data: &'a DebugData
) -> Result<(String, &'a TypeInfo), Vec<String>> {
    match get_symbol_info(
        &instance.name,
        &instance.symbol_link,
        &instance.if_data,
        debug_data
    ) {
        Ok((address, symbol_typeinfo, symbol_name)) => {
            // make sure a valid SYMBOL_LINK exists
            set_symbol_link(&mut instance.symbol_link, symbol_name.clone());
            instance.start_address = address as u32;
            update_ifdata(&mut instance.if_data, symbol_name, symbol_typeinfo, address);

            // return the name of the linked TYPEDEF_<x>
            Ok((instance.type_ref.to_owned(), symbol_typeinfo))
        }
        Err(errmsgs) => Err(errmsgs)
    }
}
// update the address of an INSTANCE object
update the address of an INSTANCE object
update the address of an INSTANCE object
fn update_instance_address<'a>(
    instance: &mut Instance,
    debug_data: &'a DebugData
) -> Result<(String, &'a TypeInfo), Vec<String>> {
    match get_symbol_info(
        &instance.name,
        &instance.symbol_link,
        &instance.if_data,
        debug_data
    ) {
        Ok((address, symbol_typeinfo, symbol_name)) => {
            // make sure a valid SYMBOL_LINK exists
            set_symbol_link(&mut instance.symbol_link, symbol_name.clone());
            instance.start_address = address as u32;
            update_ifdata(&mut instance.if_data, symbol_name, symbol_typeinfo, address);
            // return the name of the linked TYPEDEF_<x>
            Ok((instance.type_ref.to_owned(), symbol_typeinfo))
        }
        Err(errmsgs) => Err(errmsgs)
    }
}
fn update_instance_address < ' a > ( instance : & mut Instance , debug_data : & ' a DebugData ) -> Result < ( String , & ' a TypeInfo ) , Vec < String > > { match get_symbol_info ( & instance . name , & instance . symbol_link , & instance . if_data , debug_data ) { Ok ( ( address , symbol_typeinfo , symbol_name ) ) => { // make sure a valid SYMBOL_LINK exists set_symbol_link ( & mut instance . symbol_link , symbol_name . clone ( ) ) ; instance . start_address = address as u32 ; update_ifdata ( & mut instance . if_data , symbol_name , symbol_typeinfo , address ) ; // return the name of the linked TYPEDEF_<x> Ok ( ( instance . type_ref . to_owned ( ) , symbol_typeinfo ) ) } Err ( errmsgs ) => Err ( errmsgs ) } }
update the address of an INSTANCE object
update the address of an INSTANCE object
instance
&mut Instance
debug_data
&'a DebugData