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

Method view

pysplashsurf/src/utils.rs:74–79  ·  view source on GitHub ↗
(&self, container: Bound<'py, PyAny>)

Source from the content-addressed store, hash-verified

72 }
73
74 pub fn view<'py>(&self, container: Bound<'py, PyAny>) -> PyResult<Bound<'py, PyUntypedArray>> {
75 match self {
76 PyFloatVecWrapper::F32(v) => view_scalar_generic(v, container),
77 PyFloatVecWrapper::F64(v) => view_scalar_generic(v, container),
78 }
79 }
80}
81
82/// Transmutes a mutable reference from a generic type to a concrete type if they are identical, otherwise returns None

Callers 1

particle_densitiesMethod · 0.80

Calls 1

view_scalar_genericFunction · 0.85

Tested by

no test coverage detected