Returns a mutable reference to the Float storage, panics if it is not the correct variant
(&mut self)
| 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> { |
| 665 | if let AttributeStorage::Float(v) = self { |
| 666 | v |
| 667 | } else { |
| 668 | panic!("Storage is not an Float storage"); |
| 669 | } |
| 670 | } |
| 671 | |
| 672 | /// Returns a mutable reference to the Vector storage, panics if it is not the correct variant |
| 673 | pub fn as_vec_mut(&mut self) -> &mut Vec<f32> { |