/// Adds the data to the module's segment.
/// Returns the index of the data in the module.
Adds the data to the module's segment.
Returns the index of the data in the module.
Adds the data to the module ' s segment . Returns the index of the data in the module .
pub fn add_data(&mut self, datum: Data) -> Result<DataIndex, ModelError> {
        let data = self.module.data.get_or_insert_with(Vec::new);
        let index = u32::try_from(data.len())?;
        data.push(datum);
        Ok(index)
    }
pub fn add_data ( & mut self , datum : Data ) -> Result < DataIndex , ModelError > { let data = self . module . data . get_or_insert_with ( Vec :: new ) ; let index = u32 :: try_from ( data . len ( ) ) ? ; data . push ( datum ) ; Ok ( index ) }
Adds the data to the module's segment.
Adds the data to the module ' s segment .
&mut self
datum
Data