MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / len

Method len

splashsurf_lib/src/io/bgeo_format.rs:646–652  ·  view source on GitHub ↗

Returns the number of scalar values in the storage

(&self)

Source from the content-addressed store, hash-verified

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> {

Callers 12

fromMethod · 0.45
particles_from_jsonFunction · 0.45
particles_to_jsonFunction · 0.45
parse_mesh_from_plyFunction · 0.45
particles_to_bgeo_implFunction · 0.45
write_bgeoFunction · 0.45
num_pointsMethod · 0.45
parse_pointsFunction · 0.45
try_convert_scalar_sliceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected