Set a value in the row
(&mut self, name: String, value: Value)
| 241 | |
| 242 | /// Set a value in the row |
| 243 | pub fn set_value(&mut self, name: String, value: Value) { |
| 244 | self.values.insert(name, value.clone()); |
| 245 | // For simplicity, we'll rebuild positional values when setting individual values |
| 246 | // In a production system, you'd want to maintain position mapping |
| 247 | if !self.positional_values.is_empty() { |
| 248 | // Update the existing positional value if it exists |
| 249 | // This is a simplified approach - production code would need better position tracking |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | /// Track the source entity for a variable |
| 254 | /// This enables identity-based comparison in set operations |
no test coverage detected