/// Load a constant as a variable.
Load a constant as a variable.
Load a constant as a variable .
pub fn constant(&mut self, constant: Constant) -> ValueId {
        let value = self.inner.global.value();
        let const_id = self.inner.global.constant(constant);
        self.inner
            .assignments
            .borrow_mut()
            .insert(value, Inst::Const(const_id));
        value
    }
pub fn constant ( & mut self , constant : Constant ) -> ValueId { let value = self . inner . global . value ( ) ; let const_id = self . inner . global . constant ( constant ) ; self . inner . assignments . borrow_mut ( ) . insert ( value , Inst :: Const ( const_id ) ) ; value }
Load a constant as a variable.
Load a constant as a variable .
&mut self
constant
Constant