pub trait 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.
Equivalent to ConstParamTy_
except that this is used by
the unsized_const_params
to allow for fake unstable impls.
Object Safetyยง
This trait is not object safe.
Implementorsยง
impl UnsizedConstParamTy for bool
impl UnsizedConstParamTy for char
impl UnsizedConstParamTy for i8
impl UnsizedConstParamTy for i16
impl UnsizedConstParamTy for i32
impl UnsizedConstParamTy for i64
impl UnsizedConstParamTy for i128
impl UnsizedConstParamTy for isize
impl UnsizedConstParamTy for str
impl UnsizedConstParamTy for u8
impl UnsizedConstParamTy for u16
impl UnsizedConstParamTy for u32
impl UnsizedConstParamTy for u64
impl UnsizedConstParamTy for u128
impl UnsizedConstParamTy for ()
impl UnsizedConstParamTy for usize
impl UnsizedConstParamTy for Assume
impl<T: UnsizedConstParamTy + ?Sized> UnsizedConstParamTy for &T
impl<T: UnsizedConstParamTy> UnsizedConstParamTy for [T]
impl<T: UnsizedConstParamTy> UnsizedConstParamTy for (Tโ, Tโ, โฆ, Tโ)
This trait is implemented for tuples up to twelve items long.