pub(super) fn try_read_value(
        &self,
        src: OpTy<'tcx>,
    ) -> EvalResult<'tcx, Result<Value, MemPlace>> {
        Ok(match src.try_as_mplace() {
            Ok(mplace) => {
                if let Some(val) = self.try_read_value_from_mplace(mplace)? {
                    Ok(val)
                } else {
                    Err(*mplace)
                }
            },
            Err(val) => Ok(val),
        })
    }
/// Try returning an immediate value for the operand.
/// If the layout does not permit loading this as a value, return where in memory
/// we can find the data.
/// Note that for a given layout, this operation will either always fail or always
/// succeed!  Whether it succeeds depends on whether the layout can be represented
/// in a `Value`, not on which data is stored there currently.
Try returning an immediate value for the operand.
If the layout does not permit loading this as a value, return where in memory
we can find the data.
Note that for a given layout, this operation will either always fail or always
succeed.  Whether it succeeds depends on whether the layout can be represented
in a `Value`, not on which data is stored there currently.
Try returning an immediate value for the operand . If the layout does not permit loading this as a value return where in memory we can find the data . Note that for a given layout this operation will either always fail or always succeed . Whether it succeeds depends on whether the layout can be represented in a ` Value ` not on which data is stored there currently .
pub(super) fn try_read_value(
        &self,
        src: OpTy<'tcx>,
    ) -> EvalResult<'tcx, Result<Value, MemPlace>> {
        Ok(match src.try_as_mplace() {
            Ok(mplace) => {
                if let Some(val) = self.try_read_value_from_mplace(mplace)? {
                    Ok(val)
                } else {
                    Err(*mplace)
                }
            },
            Err(val) => Ok(val),
        })
    }
pub ( super ) fn try_read_value ( & self , src : OpTy < ' tcx > , ) -> EvalResult < ' tcx , Result < Value , MemPlace > > { Ok ( match src . try_as_mplace ( ) { Ok ( mplace ) => { if let Some ( val ) = self . try_read_value_from_mplace ( mplace ) ? { Ok ( val ) } else { Err ( * mplace ) } } , Err ( val ) => Ok ( val ) , } ) }
Try returning an immediate value for the operand.
Try returning an immediate value for the operand .
&self
src
OpTy<'tcx>