We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2e702 commit f08db6bCopy full SHA for f08db6b
src/libstd/f32.rs
@@ -221,6 +221,7 @@ impl f32 {
221
/// assert!(f32::NAN.copysign(1.0).is_nan());
222
/// ```
223
#[inline]
224
+ #[must_use]
225
#[unstable(feature="copysign", issue="55169")]
226
pub fn copysign(self, y: f32) -> f32 {
227
unsafe { intrinsics::copysignf32(self, y) }
src/libstd/f64.rs
@@ -199,6 +199,7 @@ impl f64 {
199
/// assert!(f64::NAN.copysign(1.0).is_nan());
200
201
202
203
204
pub fn copysign(self, y: f64) -> f64 {
205
unsafe { intrinsics::copysignf64(self, y) }
0 commit comments