Trait ConstParamTy_

Source
pub trait ConstParamTy_:
    UnsizedConstParamTy
    + StructuralPartialEq
    + Eq { }
๐Ÿ”ฌThis is a nightly-only experimental API. (unsized_const_params #95174)
Expand description

A marker for types which can be used as types of const generic parameters.

These types must have a proper equivalence relation (Eq) and it must be automatically derived (StructuralPartialEq). Thereโ€™s a hard-coded check in the compiler ensuring that all fields are also ConstParamTy, which implies that recursively, all fields are StructuralPartialEq.

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.

Implementorsยง

Sourceยง

impl ConstParamTy_ for bool

Sourceยง

impl ConstParamTy_ for char

Sourceยง

impl ConstParamTy_ for i8

Sourceยง

impl ConstParamTy_ for i16

Sourceยง

impl ConstParamTy_ for i32

Sourceยง

impl ConstParamTy_ for i64

Sourceยง

impl ConstParamTy_ for i128

Sourceยง

impl ConstParamTy_ for isize

Sourceยง

impl ConstParamTy_ for u8

Sourceยง

impl ConstParamTy_ for u16

Sourceยง

impl ConstParamTy_ for u32

Sourceยง

impl ConstParamTy_ for u64

Sourceยง

impl ConstParamTy_ for u128

Sourceยง

impl ConstParamTy_ for ()

Sourceยง

impl ConstParamTy_ for usize

Sourceยง

impl ConstParamTy_ for Assume

Sourceยง

impl<A, Z, Y, X, W, V, U, T> ConstParamTy_ for (A, Z, Y, X, W, V, U, T)

Sourceยง

impl<B, A, Z, Y, X, W, V, U, T> ConstParamTy_ for (B, A, Z, Y, X, W, V, U, T)

Sourceยง

impl<C, B, A, Z, Y, X, W, V, U, T> ConstParamTy_ for (C, B, A, Z, Y, X, W, V, U, T)

Sourceยง

impl<D, C, B, A, Z, Y, X, W, V, U, T> ConstParamTy_ for (D, C, B, A, Z, Y, X, W, V, U, T)

Sourceยง

impl<E, D, C, B, A, Z, Y, X, W, V, U, T> ConstParamTy_ for (E, D, C, B, A, Z, Y, X, W, V, U, T)

Sourceยง

impl<T> ConstParamTy_ for (Tโ‚, Tโ‚‚, โ€ฆ, Tโ‚™)
where T: ConstParamTy_,

This trait is implemented for tuples up to twelve items long.

Sourceยง

impl<T, const N: usize> ConstParamTy_ for [T; N]
where T: ConstParamTy_,

Sourceยง

impl<U, T> ConstParamTy_ for (U, T)

Sourceยง

impl<V, U, T> ConstParamTy_ for (V, U, T)

Sourceยง

impl<W, V, U, T> ConstParamTy_ for (W, V, U, T)

Sourceยง

impl<X, W, V, U, T> ConstParamTy_ for (X, W, V, U, T)

Sourceยง

impl<Y, X, W, V, U, T> ConstParamTy_ for (Y, X, W, V, U, T)

Sourceยง

impl<Z, Y, X, W, V, U, T> ConstParamTy_ for (Z, Y, X, W, V, U, T)