# Crate integral_constant

source ·## Expand description

This crate provides type-level representations of constant values. The name
`integral_constant`

is a reference to `std::integral_constant`

in C++,
which serves a similar purpose. Unlike `std::integral_constant`

, this
crate provides separate wrapper types depending on the type of the constant
value, since the type of const generics in Rust cannot depend on type
parameters.

## Structs

- A
`bool`

represented as a type. - A
`char`

represented as a type. - An
`i8`

represented as a type. - An
`i16`

represented as a type. - An
`i32`

represented as a type. - An
`i64`

represented as a type. - An
`i128`

represented as a type. - An
`isize`

represented as a type. - A
`u8`

represented as a type. - A
`u16`

represented as a type. - A
`u32`

represented as a type. - A
`u64`

represented as a type. - A
`u128`

represented as a type. - A
`usize`

represented as a type.

## Traits

- A type-level constant.