From c7c57b09f01dc184b9f7526355f3a7196d12260a Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Thu, 17 Sep 2020 19:13:52 +0200 Subject: [PATCH] fix doc links --- src/macros_frac.rs | 12 ++++++------ src/macros_from_to.rs | 4 ++-- src/macros_no_frac.rs | 18 +++++++++--------- src/macros_round.rs | 8 ++++---- src/traits.rs | 3 +-- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/src/macros_frac.rs b/src/macros_frac.rs index 40d6cf7..55b665e 100644 --- a/src/macros_frac.rs +++ b/src/macros_frac.rs @@ -999,7 +999,7 @@ type OneIntBit = ", $s_fixed, "; let _overflow = OneIntBit::from_num(0.5).unwrapped_signum(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_signum(self) -> $Fixed { @@ -1035,7 +1035,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_mul(Fix::from_num(4)); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_mul(self, rhs: $Fixed) -> $Fixed { @@ -1072,7 +1072,7 @@ let quarter = Fix::from_num(1) / 4; let _overflow = Fix::MAX.unwrapped_div(quarter); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_div(self, rhs: $Fixed) -> $Fixed { @@ -1110,7 +1110,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_div_euclid(Fix::from_num(0.25)); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_div_euclid(self, rhs: $Fixed) -> $Fixed { @@ -1169,7 +1169,7 @@ let _overflow = Fix::MIN.unwrapped_div_euclid_int(-1); }, "``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_div_euclid_int(self, rhs: $Inner) -> $Fixed { @@ -1227,7 +1227,7 @@ let _overflow = Fix::from_num(-7.5).unwrapped_rem_euclid_int(20); }, "``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_rem_euclid_int(self, rhs: $Inner) -> $Fixed { diff --git a/src/macros_from_to.rs b/src/macros_from_to.rs index 889d6a7..f3b9544 100644 --- a/src/macros_from_to.rs +++ b/src/macros_from_to.rs @@ -771,7 +771,7 @@ let _overflow = Fix::unwrapped_from_num(too_large); [`u64`]: https://doc.rust-lang.org/nightly/std/primitive.u64.html [`u8`]: https://doc.rust-lang.org/nightly/std/primitive.u8.html [`usize`]: https://doc.rust-lang.org/nightly/std/primitive.usize.html -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features [finite]: https://doc.rust-lang.org/nightly/std/primitive.f64.html#method.is_finite "; #[inline] @@ -854,7 +854,7 @@ let _overflow = Fix::MAX.unwrapped_to_num::(); [`u64`]: https://doc.rust-lang.org/nightly/std/primitive.u64.html [`u8`]: https://doc.rust-lang.org/nightly/std/primitive.u8.html [`usize`]: https://doc.rust-lang.org/nightly/std/primitive.usize.html -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_to_num(self) -> Dst { diff --git a/src/macros_no_frac.rs b/src/macros_no_frac.rs index bd21fa0..d4e6672 100644 --- a/src/macros_no_frac.rs +++ b/src/macros_no_frac.rs @@ -1281,7 +1281,7 @@ let _overflow = Fix::from_num(5).unwrapped_neg();", " ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_neg(self) -> $Fixed { @@ -1316,7 +1316,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_add(Fix::from_bits(1)); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_add(self, rhs: $Fixed) -> $Fixed { @@ -1358,7 +1358,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MIN.unwrapped_sub(Fix::from_bits(1)); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_sub(self, rhs: $Fixed) -> $Fixed { @@ -1393,7 +1393,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_mul_int(4); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_mul_int(self, rhs: $Inner) -> $Fixed { @@ -1450,7 +1450,7 @@ let _overflow = Fix::MIN.unwrapped_div_int(-1); }, "``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_div_int(self, rhs: $Inner) -> $Fixed { @@ -1488,7 +1488,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::from_num(1).unwrapped_shl(", $s_nbits, "); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_shl(self, rhs: u32) -> $Fixed { @@ -1523,7 +1523,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::from_num(1).unwrapped_shr(", $s_nbits, "); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_shr(self, rhs: u32) -> $Fixed { @@ -1562,7 +1562,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MIN.unwrapped_abs(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_abs(self) -> $Fixed { @@ -1604,7 +1604,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_next_power_of_two(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_next_power_of_two(self) -> $Fixed { diff --git a/src/macros_round.rs b/src/macros_round.rs index cba24f3..cdd74c5 100644 --- a/src/macros_round.rs +++ b/src/macros_round.rs @@ -713,7 +713,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_ceil(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_ceil(self) -> $Fixed { @@ -762,7 +762,7 @@ let _overflow = AllFrac::MIN.unwrapped_floor(); }, "``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_floor(self) -> $Fixed { @@ -804,7 +804,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_round(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_round(self) -> $Fixed { @@ -841,7 +841,7 @@ type Fix = ", $s_fixed, "; let _overflow = Fix::MAX.unwrapped_round_ties_to_even(); ``` -[exp]: ../index.html#experimental-optional-features +[exp]: index.html#experimental-optional-features "; #[inline] pub fn unwrapped_round_ties_to_even(self) -> $Fixed { diff --git a/src/traits.rs b/src/traits.rs index 7e15cc0..0ae142c 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -688,7 +688,6 @@ where /// with ties rounded to even, and wrapping on overflow. fn wrapping_round_ties_to_even(self) -> Self; - #[cfg(feature = "unwrapped")] /// Unwrapped ceil. Rounds to the next integer towards +∞, /// panicking on overflow. @@ -1210,7 +1209,7 @@ where /// /// [exp]: ../index.html#experimental-optional-features fn unwrapped_shr(self, rhs: u32) -> Self; - + /// Overflowing negation. /// /// Returns a [tuple] of the negated value and a [`bool`],