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

Method as_vec_mut

splashsurf_lib/src/io/bgeo_format.rs:673–679  ·  view source on GitHub ↗

Returns a mutable reference to the Vector storage, panics if it is not the correct variant

(&mut self)

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected