]>
git.proxmox.com Git - rustc.git/blob - library/core/src/num/int_macros.rs
3 macro_rules
! doc_comment
{
4 ($x
:expr
, $
($tt
:tt
)*) => {
10 macro_rules
! int_module
{
11 ($T
:ident
) => (int_module
!($T
, #[stable(feature = "rust1", since = "1.0.0")]););
12 ($T
:ident
, #[$attr:meta]) => (
14 concat
!("The smallest value that can be represented by this integer type.
15 Use [`", stringify
!($T
), "::MIN", "`](../../std/primitive.", stringify
!($T
), ".html#associatedconstant.MIN) instead.
21 let min = std::", stringify
!($T
), "::MIN;
24 let min = ", stringify
!($T
), "::MIN;
28 pub const MIN
: $T
= $T
::MIN
;
32 concat
!("The largest value that can be represented by this integer type.
33 Use [`", stringify
!($T
), "::MAX", "`](../../std/primitive.", stringify
!($T
), ".html#associatedconstant.MAX) instead.
39 let max = std::", stringify
!($T
), "::MAX;
42 let max = ", stringify
!($T
), "::MAX;
46 pub const MAX
: $T
= $T
::MAX
;