pub trait Const {
type Type;
const VALUE: Self::Type;
}
Expand description
Describes a type that holds an associated const value.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<A, B, C, D, E, F, G, H, I, J, K, L> Const for (A, B, C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<A, B, C, D, E, F, G, H, I, J, K, L> Const for (A, B, C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
const VALUE: <(A, B, C, D, E, F, G, H, I, J, K, L) as Const>::Type
type Type = (<A as Const>::Type, <B as Const>::Type, <C as Const>::Type, <D as Const>::Type, <E as Const>::Type, <F as Const>::Type, <G as Const>::Type, <H as Const>::Type, <I as Const>::Type, <J as Const>::Type, <K as Const>::Type, <L as Const>::Type)
Source§impl<B, C, D, E, F, G, H, I, J, K, L> Const for (B, C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<B, C, D, E, F, G, H, I, J, K, L> Const for (B, C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
const VALUE: <(B, C, D, E, F, G, H, I, J, K, L) as Const>::Type
type Type = (<B as Const>::Type, <C as Const>::Type, <D as Const>::Type, <E as Const>::Type, <F as Const>::Type, <G as Const>::Type, <H as Const>::Type, <I as Const>::Type, <J as Const>::Type, <K as Const>::Type, <L as Const>::Type)
Source§impl<C, D, E, F, G, H, I, J, K, L> Const for (C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<C, D, E, F, G, H, I, J, K, L> Const for (C, D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<D, E, F, G, H, I, J, K, L> Const for (D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<D, E, F, G, H, I, J, K, L> Const for (D, E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<E, F, G, H, I, J, K, L> Const for (E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<E, F, G, H, I, J, K, L> Const for (E, F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<F, G, H, I, J, K, L> Const for (F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<F, G, H, I, J, K, L> Const for (F, G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<G, H, I, J, K, L> Const for (G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<G, H, I, J, K, L> Const for (G, H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<H, I, J, K, L> Const for (H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<H, I, J, K, L> Const for (H, I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
Source§impl<I, J, K, L> Const for (I, J, K, L)
Tuples of Const
evaluate to a tuple of the values
impl<I, J, K, L> Const for (I, J, K, L)
Tuples of Const
evaluate to a tuple of the values