Macro const_type_instance

Source
macro_rules! const_type_instance {
    (true $(: bool)?) => { ... };
    (false $(: bool)?) => { ... };
}
Expand description

Returns an instance of the type that represents the constant.

At the moment of writing, the macro cannot support user-defined types implementing the Const trait.

However, you still can construct instances of types that represent constant values of type T manually.