Returns a mutable reference to the Int storage, panics if it is not the correct variant
(&mut self)
| 653 | |
| 654 | /// Returns a mutable reference to the Int storage, panics if it is not the correct variant |
| 655 | pub fn as_int_mut(&mut self) -> &mut Vec<i32> { |
| 656 | if let AttributeStorage::Int(v) = self { |
| 657 | v |
| 658 | } else { |
| 659 | panic!("Storage is not an Int storage"); |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | /// Returns a mutable reference to the Float storage, panics if it is not the correct variant |
| 664 | pub fn as_float_mut(&mut self) -> &mut Vec<f32> { |