/// Copies the value into a new location. This function always preserves the existing datum as
/// a valid value. Therefore, it does not consume `self` and, also, cannot be applied to affine
/// values (since they must never be duplicated).
Copies the value into a new location. This function always preserves the existing datum as
a valid value. Therefore, it does not consume `self` and, also, cannot be applied to affine
values (since they must never be duplicated).
Copies the value into a new location . This function always preserves the existing datum as a valid value . Therefore it does not consume ` self ` and also cannot be applied to affine values ( since they must never be duplicated ) .
pub fn shallow_copy<'blk>(&self,
                              bcx: Block<'blk, 'tcx>,
                              dst: ValueRef)
                              -> Block<'blk, 'tcx> {
        /*!
         * Copies the value into a new location. This function always
         * preserves the existing datum as a valid value. Therefore,
         * it does not consume `self` and, also, cannot be applied to
         * affine values (since they must never be duplicated).
         */
        assert!(!self.ty.moves_by_default(bcx.tcx(),
            &bcx.tcx().empty_parameter_environment(), DUMMY_SP));
        self.shallow_copy_raw(bcx, dst)
    }
pub fn shallow_copy < ' blk > ( & self , bcx : Block < ' blk , ' tcx > , dst : ValueRef ) -> Block < ' blk , ' tcx > { /*!
         * Copies the value into a new location. This function always
         * preserves the existing datum as a valid value. Therefore,
         * it does not consume `self` and, also, cannot be applied to
         * affine values (since they must never be duplicated).
         */ assert ! ( self ty moves_by_default ( bcx tcx ( ) bcx tcx ( ) empty_parameter_environment ( ) DUMMY_SP ) ) ; self . shallow_copy_raw ( bcx , dst ) }
Copies the value into a new location.
Copies the value into a new location .
&self
bcx
Block<'blk, 'tcx>
dst
ValueRef