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§

fn get() -> T

Return the current value.

Implementations on Foreign Types§

§

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

§

fn get() -> T

source§

impl<I> Get<I> for BlockExecutionWeightwhere I: From<Weight>,

source§

fn get() -> I

source§

impl<C, A> Get<<C as Currency<A>>::Balance> for ActiveIssuanceOf<C, A>where C: Currency<A>,

source§

fn get() -> <C as Currency<A>>::Balance

source§

impl<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageMap<Prefix, Hasher, Key, Value, QueryKind, OnEmpty, MaxValues>>where Prefix: StorageInstance, Hasher: StorageHasher, Key: FullCodec + MaxEncodedLen,

source§

impl<I> Get<I> for ParityDbWeightwhere I: From<RuntimeDbWeight>,

source§

fn get() -> I

source§

impl<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues> Get<u32> for KeyLenOf<StorageDoubleMap<Prefix, Hasher1, Key1, Hasher2, Key2, Value, QueryKind, OnEmpty, MaxValues>>where Prefix: StorageInstance, Hasher1: StorageHasher, Hasher2: StorageHasher, Key1: MaxEncodedLen, Key2: MaxEncodedLen,

source§

impl<T, P> Get<u32> for ClassCountOf<P, T>where P: Polling<T>,

source§

impl<I> Get<I> for ExtrinsicBaseWeightwhere I: From<Weight>,

source§

fn get() -> I

source§

impl<C, A> Get<<C as Currency<A>>::Balance> for TotalIssuanceOf<C, A>where C: Currency<A>,

source§

fn get() -> <C as Currency<A>>::Balance

source§

impl<I> Get<I> for RocksDbWeightwhere I: From<RuntimeDbWeight>,

source§

fn get() -> I

Implementors§

§

impl<T> Get<T> for GetDefaultwhere T: Default,

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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