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

Method try_convert

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

Source from the content-addressed store, hash-verified

223
224 #[inline]
225 fn try_convert<To: Real>(self) -> Option<To> {
226 <To as NumCast>::from(*self)
227 }
228}
229
230impl RealConvert for f32 {

Callers 1

convertMethod · 0.45

Calls 2

iter_mutMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected