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

Method len

splashsurf_lib/src/mesh.rs:1424–1430  ·  view source on GitHub ↗

Returns the number of entries in the data set

(&self)

Source from the content-addressed store, hash-verified

1422impl<'a, R: Real> AttributeData<'a, R> {
1423 /// Returns the number of entries in the data set
1424 fn len(&self) -> usize {
1425 match self {
1426 AttributeData::ScalarU64(v) => v.len(),
1427 AttributeData::ScalarReal(v) => v.len(),
1428 AttributeData::Vector3Real(v) => v.len(),
1429 }
1430 }
1431}
1432
1433impl<R: Real, V: Into<Vec<u64>>> From<V> for OwnedAttributeData<R> {

Callers 5

newMethod · 0.45
appendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected