We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 542884d commit d4e5b0aCopy full SHA for d4e5b0a
src/cast.rs
@@ -292,15 +292,9 @@ macro_rules! impl_to_primitive_nonzero {
292
fn to_u32 -> u32;
293
fn to_u64 -> u64;
294
fn to_u128 -> u128;
295
- }
296
297
- #[inline]
298
- fn to_f32(&self) -> Option<f32> {
299
- Some(self.get() as f32)
300
301
302
- fn to_f64(&self) -> Option<f64> {
303
- Some(self.get() as f64)
+ fn to_f32 -> f32;
+ fn to_f64 -> f64;
304
}
305
306
};
0 commit comments