pub fn add_identifier(&mut self, name: &str) -> usize {
        if let Some(val) = self.identifiers.get(name) {
            *val
        } else {
            let index = self.add_constant(Value::from(name));
            self.identifiers.insert(name.to_string(), index);
            index
        }
    }
/// Add an identifier to this [`Chunk`]'s constants array, 
/// returning its index. If the identifier is already in the 
/// array, then returns that index.
Add an identifier to this [`Chunk`]'s constants array,
returning its index. If the identifier is already in the
array, then returns that index.
Add an identifier to this [ ` Chunk ` ] ' s constants array returning its index . If the identifier is already in the array then returns that index .
pub fn add_identifier(&mut self, name: &str) -> usize {
        if let Some(val) = self.identifiers.get(name) {
            *val
        } else {
            let index = self.add_constant(Value::from(name));
            self.identifiers.insert(name.to_string(), index);
            index
        }
    }
pub fn add_identifier ( & mut self , name : & str ) -> usize { if let Some ( val ) = self . identifiers . get ( name ) { * val } else { let index = self . add_constant ( Value :: from ( name ) ) ; self . identifiers . insert ( name . to_string ( ) , index ) ; index } }
Add an identifier to this [`Chunk`]'s constants array,
returning its index.
Add an identifier to this [ ` Chunk ` ] ' s constants array returning its index .
&mut self
name
&str