Skip to main content

ConstWrap

Trait ConstWrap 

Source
pub trait ConstWrap:
    Clone
    + Copy
    + Default
    + Eq
    + Hash
    + PartialEq
    + PartialOrd
    + Ord
    + WrapSeal {
    type BaseType: Constable;

    const VALUE: Self::BaseType;
}
Expand description

Marker that shows it wraps const generic.

Required Associated Constants§

Source

const VALUE: Self::BaseType

Value which is wrapped.

Required Associated Types§

Source

type BaseType: Constable

Type which is wrapped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<const T: bool> ConstWrap for WrapBOOL<T>

Source§

impl<const T: char> ConstWrap for WrapCHAR<T>

Source§

impl<const T: i8> ConstWrap for WrapI8<T>

Source§

impl<const T: i16> ConstWrap for WrapI16<T>

Source§

impl<const T: i32> ConstWrap for WrapI32<T>

Source§

impl<const T: i64> ConstWrap for WrapI64<T>

Source§

impl<const T: isize> ConstWrap for WrapISIZE<T>

Source§

impl<const T: u8> ConstWrap for WrapU8<T>

Source§

impl<const T: u16> ConstWrap for WrapU16<T>

Source§

impl<const T: u32> ConstWrap for WrapU32<T>

Source§

impl<const T: u64> ConstWrap for WrapU64<T>

Source§

impl<const T: usize> ConstWrap for WrapUSIZE<T>