pub fn declare_constant(&mut self, name: Identifier, type_id: TypeId, value: Vec<u8>) {
        debug_assert!({
            let size = self.get_type(type_id).required_size(self);
            value.len() == size
        });

        self.insert_item_into_current(name, ScopeItem::Constant {
            type_id: type_id,
            bytes: value,
        });
    }
/// Declares a constant with the given name
Declares a constant with the given name
Declares a constant with the given name
pub fn declare_constant(&mut self, name: Identifier, type_id: TypeId, value: Vec<u8>) {
        debug_assert!({
            let size = self.get_type(type_id).required_size(self);
            value.len() == size
        });
        self.insert_item_into_current(name, ScopeItem::Constant {
            type_id: type_id,
            bytes: value,
        });
    }
pub fn declare_constant ( & mut self , name : Identifier , type_id : TypeId , value : Vec < u8 > ) { debug_assert ! ( { let size self get_type ( type_id ) required_size ( self ) value len ( ) size } ) ; self . insert_item_into_current ( name , ScopeItem :: Constant { type_id : type_id , bytes : value , } ) ; }
Declares a constant with the given name
Declares a constant with the given name
&mut self
name
Identifier
type_id
TypeId
value
Vec<u8>
&mut self
name
Identifier
type_id
TypeId
value
Vec<u8>