bounded_collections

Trait TypedGet

Source
pub trait TypedGet {
    type Type;

    // Required method
    fn get() -> Self::Type;
}
Expand description

A trait for querying a single value from a type defined in the trait.

It is not required that the value is constant.

Required Associated Types§

Source

type Type

The type which is returned.

Required Methods§

Source

fn get() -> Self::Type

Return the current value.

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<const N: i128> TypedGet for ConstInt<N>

Source§

impl<const N: u128> TypedGet for ConstUint<N>

Source§

impl<const T: bool> TypedGet for ConstBool<T>

Source§

impl<const T: i8> TypedGet for ConstI8<T>

Source§

impl<const T: i16> TypedGet for ConstI16<T>

Source§

impl<const T: i32> TypedGet for ConstI32<T>

Source§

impl<const T: i64> TypedGet for ConstI64<T>

Source§

impl<const T: i128> TypedGet for ConstI128<T>

Source§

impl<const T: u8> TypedGet for ConstU8<T>

Source§

impl<const T: u16> TypedGet for ConstU16<T>

Source§

impl<const T: u32> TypedGet for ConstU32<T>

Source§

impl<const T: u64> TypedGet for ConstU64<T>

Source§

impl<const T: u128> TypedGet for ConstU128<T>