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

Method to_i32

splashsurf_lib/src/io/bgeo_format.rs:293–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

291 }
292
293 fn to_i32(self) -> i32 {
294 match self {
295 BgeoAttributeType::Float => 0,
296 BgeoAttributeType::Int => 1,
297 BgeoAttributeType::String => 2,
298 BgeoAttributeType::IndexedString => 4,
299 BgeoAttributeType::Vector => 5,
300 }
301 }
302}
303
304/// Definition of a BGEO attribute

Callers 3

particles_to_bgeo_implFunction · 0.80
write_bgeoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected