Returns the number of scalar values in the storage
(&self)
| 644 | |
| 645 | /// Returns the number of scalar values in the storage |
| 646 | pub fn len(&self) -> usize { |
| 647 | match self { |
| 648 | AttributeStorage::Int(v) => v.len(), |
| 649 | AttributeStorage::Float(v) => v.len(), |
| 650 | AttributeStorage::Vector(_, v) => v.len(), |
| 651 | } |
| 652 | } |
| 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> { |
no outgoing calls
no test coverage detected