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

Method as_int_mut

splashsurf_lib/src/io/bgeo_format.rs:655–661  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

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> {
656 if let AttributeStorage::Int(v) = self {
657 v
658 } else {
659 panic!("Storage is not an Int storage");
660 }
661 }
662
663 /// Returns a mutable reference to the Float storage, panics if it is not the correct variant
664 pub fn as_float_mut(&mut self) -> &mut Vec<f32> {

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected