| 1 | #[cfg(not(feature = "std"))] |
| 2 | use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#; |
| 3 | #[cfg(feature = "std")] |
| 4 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display#; |
| 5 | |
| 6 | /// A value that can be formatted as a decimal integer |
| 7 | pub trait PrintableIntegerrust-analyzer cargo bendy 0.6.1 encoding/printable_integer/PrintableInteger#: Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# {} |
| 8 | |
| 9 | macro_rules! impl_integerrust-analyzer cargo bendy 0.6.1 encoding/printable_integer/impl_integer! { |
| 10 | ($($type:ty)*) => {$( |
| 11 | impl PrintableInteger for $type {} |
| 12 | )*} |
| 13 | } |
| 14 | |
| 15 | impl_integerrust-analyzer cargo bendy 0.6.1 encoding/printable_integer/impl_integer!!(u8 u16 u32 u64 u128 usize i8 i16 i32 i64 i128 isize); |