File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 124
124
//! }
125
125
//! ```
126
126
127
+ #![ warn( missing_docs, unreachable_pub) ]
128
+
127
129
pub mod duration;
128
130
#[ macro_use]
129
131
pub mod macros;
Original file line number Diff line number Diff line change
1
+ //! Various helper macros.
2
+
1
3
/// `compile_warning` macro is a brother of [`std::compile_error`],
2
4
/// which emits a compile-time warning with a provided message.
3
5
///
Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ pub trait Integer:
45
45
+ MulAssign
46
46
+ Copy
47
47
{
48
+ /// The smallest value that can be represented by this integer type.
48
49
const MIN : Self ;
50
+ /// The largest value that can be represented by this integer type.
49
51
const MAX : Self ;
52
+ /// The size of this integer type in bits.
50
53
const BITS : u32 ;
51
54
52
55
/// See [`u128::from_str_radix`].
You can’t perform that action at this time.
0 commit comments