You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
concat!("Returns the number of leading zeros in the binary representation of `self`.
187
-
188
-
On many architectures, this function can perform better than `leading_zeros()` on the underlying integer type, as special handling of zero can be avoided.
189
-
190
-
# Examples
191
-
192
-
Basic usage:
193
-
194
-
```
195
-
#![feature(nonzero_leading_trailing_zeros)]
196
-
let n = std::num::", stringify!($Ty),"::new(", stringify!($LeadingTestExpr),").unwrap();
/// Returns the number of leading zeros in the binary representation of `self`.
186
+
///
187
+
/// On many architectures, this function can perform better than `leading_zeros()` on the underlying integer type, as special handling of zero can be avoided.
188
+
///
189
+
/// # Examples
190
+
///
191
+
/// Basic usage:
192
+
///
193
+
/// ```
194
+
/// #![feature(nonzero_leading_trailing_zeros)]
195
+
#[doc = concat!("let n = std::num::", stringify!($Ty),"::new(", stringify!($LeadingTestExpr),").unwrap();")]
concat!("Returns the number of trailing zeros in the binary representation
211
-
of `self`.
212
-
213
-
On many architectures, this function can perform better than `trailing_zeros()` on the underlying integer type, as special handling of zero can be avoided.
214
-
215
-
# Examples
216
-
217
-
Basic usage:
218
-
219
-
```
220
-
#![feature(nonzero_leading_trailing_zeros)]
221
-
let n = std::num::", stringify!($Ty),"::new(0b0101000).unwrap();
/// Returns the number of trailing zeros in the binary representation
208
+
/// of `self`.
209
+
///
210
+
/// On many architectures, this function can perform better than `trailing_zeros()` on the underlying integer type, as special handling of zero can be avoided.
211
+
///
212
+
/// # Examples
213
+
///
214
+
/// Basic usage:
215
+
///
216
+
/// ```
217
+
/// #![feature(nonzero_leading_trailing_zeros)]
218
+
#[doc = concat!("let n = std::num::", stringify!($Ty),"::new(0b0101000).unwrap();")]
0 commit comments