Trait bounded_collections::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Type = bool

source§

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

§

type Type = i8

source§

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

§

type Type = i16

source§

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

§

type Type = i32

source§

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

§

type Type = i64

source§

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

§

type Type = i128

source§

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

§

type Type = u8

source§

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

§

type Type = u16

source§

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

§

type Type = u32

source§

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

§

type Type = u64

source§

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

§

type Type = u128