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

Method convert

splashsurf_lib/src/traits.rs:213–215  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 /// Converts this value to the target type, panics if value cannot be represented by the target type
212 #[inline]
213 fn convert<To: Real>(self) -> Self::Out<To> {
214 self.try_convert().expect("failed to convert")
215 }
216}
217
218impl<From: Real> RealConvert for &From {

Callers

nothing calls this directly

Implementers 1

traits.rssplashsurf_lib/src/traits.rs

Calls 1

try_convertMethod · 0.45

Tested by

no test coverage detected