bounded_collections

Trait Get

Source
pub trait Get<T> {
    // Required method
    fn get() -> T;
}
Expand description

A trait for querying a single value from a type.

It is not required that the value is constant.

Required Methods§

Source

fn get() -> T

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.

Implementations on Foreign Types§

Source§

impl<T: Default> Get<T> for ()

Source§

fn get() -> T

Implementors§

Source§

impl<T: Default> Get<T> for GetDefault

Source§

impl<const N: i128> Get<Option<i8>> for ConstInt<N>

Source§

impl<const N: i128> Get<Option<i16>> for ConstInt<N>

Source§

impl<const N: i128> Get<Option<i32>> for ConstInt<N>

Source§

impl<const N: i128> Get<Option<i64>> for ConstInt<N>

Source§

impl<const N: i128> Get<Option<i128>> for ConstInt<N>

Source§

impl<const N: i128> Get<i8> for ConstInt<N>

Source§

impl<const N: i128> Get<i16> for ConstInt<N>

Source§

impl<const N: i128> Get<i32> for ConstInt<N>

Source§

impl<const N: i128> Get<i64> for ConstInt<N>

Source§

impl<const N: i128> Get<i128> for ConstInt<N>

Source§

impl<const N: u128> Get<Option<u8>> for ConstUint<N>

Source§

impl<const N: u128> Get<Option<u16>> for ConstUint<N>

Source§

impl<const N: u128> Get<Option<u32>> for ConstUint<N>

Source§

impl<const N: u128> Get<Option<u64>> for ConstUint<N>

Source§

impl<const N: u128> Get<Option<u128>> for ConstUint<N>

Source§

impl<const N: u128> Get<Option<usize>> for ConstUint<N>

Source§

impl<const N: u128> Get<u8> for ConstUint<N>

Source§

impl<const N: u128> Get<u16> for ConstUint<N>

Source§

impl<const N: u128> Get<u32> for ConstUint<N>

Source§

impl<const N: u128> Get<u64> for ConstUint<N>

Source§

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

Source§

impl<const N: u128> Get<usize> for ConstUint<N>

Source§

impl<const T: bool> Get<Option<bool>> for ConstBool<T>

Source§

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

Source§

impl<const T: i8> Get<Option<i8>> for ConstI8<T>

Source§

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

Source§

impl<const T: i16> Get<Option<i16>> for ConstI16<T>

Source§

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

Source§

impl<const T: i32> Get<Option<i32>> for ConstI32<T>

Source§

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

Source§

impl<const T: i64> Get<Option<i64>> for ConstI64<T>

Source§

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

Source§

impl<const T: i128> Get<Option<i128>> for ConstI128<T>

Source§

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

Source§

impl<const T: u8> Get<Option<u8>> for ConstU8<T>

Source§

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

Source§

impl<const T: u16> Get<Option<u16>> for ConstU16<T>

Source§

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

Source§

impl<const T: u32> Get<Option<u32>> for ConstU32<T>

Source§

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

Source§

impl<const T: u64> Get<Option<u64>> for ConstU64<T>

Source§

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

Source§

impl<const T: u128> Get<Option<u128>> for ConstU128<T>

Source§

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