pub fn to_address(&self) -> Address {
        match self {
            &ValueLocation::Direct(_, addr) => addr,
            &ValueLocation::Indirect(_, addr) => unsafe { addr.load::<Address>() },
            &ValueLocation::Relocatable(_, ref symbol) => resolve_symbol(symbol.clone()),
            &ValueLocation::Register(_, _) | &ValueLocation::Constant(_, _) => {
                panic!("a register/constant cannot be turned into address")
            }
        }
    }
/// returns the address that contains the value
returns the address that contains the value
returns the address that contains the value
pub fn to_address(&self) -> Address {
        match self {
            &ValueLocation::Direct(_, addr) => addr,
            &ValueLocation::Indirect(_, addr) => unsafe { addr.load::<Address>() },
            &ValueLocation::Relocatable(_, ref symbol) => resolve_symbol(symbol.clone()),
            &ValueLocation::Register(_, _) | &ValueLocation::Constant(_, _) => {
                panic!("a register/constant cannot be turned into address")
            }
        }
    }
pub fn to_address ( & self ) -> Address { match self { & ValueLocation :: Direct ( _ , addr ) => addr , & ValueLocation :: Indirect ( _ , addr ) => unsafe { addr . load :: < Address > ( ) } , & ValueLocation :: Relocatable ( _ , ref symbol ) => resolve_symbol ( symbol . clone ( ) ) , & ValueLocation :: Register ( _ , _ ) | & ValueLocation :: Constant ( _ , _ ) => { panic ! ( " " ) } } }
returns the address that contains the value
returns the address that contains the value
&self
&self