Returns a mutable reference to the Vector storage, panics if it is not the correct variant
(&mut self)
| 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> { |
| 674 | if let AttributeStorage::Vector(_, v) = self { |
| 675 | v |
| 676 | } else { |
| 677 | panic!("Storage is not an Vector storage"); |
| 678 | } |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | /// Helper struct for parsing BGEO attributes |