referrerpolicy=no-referrer-when-downgrade

Trait Get

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.

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§

§

impl Get<Vec<AssetFilter>> for AllAssets

§

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

§

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

§

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

§

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

§

impl<I> Get<I> for BlockExecutionWeight
where I: From<Weight>,

§

fn get() -> I

§

impl<I> Get<I> for ExtrinsicBaseWeight
where I: From<Weight>,

§

fn get() -> I

§

impl<I> Get<I> for MaxDispatchErrorLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletNameLen
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for MaxPalletsInfo
where I: From<u32>,

§

fn get() -> I

§

impl<I> Get<I> for ParityDbWeight
where I: From<RuntimeDbWeight>,

§

fn get() -> I

§

impl<I> Get<I> for RocksDbWeight
where I: From<RuntimeDbWeight>,

§

fn get() -> I

§

impl<I, C> Get<I> for TestBlockHashCount<C>
where I: From<u32>, C: Get<u32>,

§

fn get() -> I

§

impl<Origin, Size, HeapSize> Get<u32> for MaxMessageLen<Origin, Size, HeapSize>
where Origin: MaxEncodedLen, Size: MaxEncodedLen + Into<u32>, HeapSize: Get<Size>,

§

fn get() -> u32

§

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,

§

fn get() -> u32

§

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,

§

fn get() -> u32

§

impl<T> Get<u32> for MaxEncodedLenOf<T>
where T: MaxEncodedLen,

§

fn get() -> u32

§

impl<T> Get<u32> for VariantCountOf<T>
where T: VariantCount,

§

fn get() -> u32

§

impl<T> Get<FixedU128> for GetMinFeeFactor<T>
where T: FeeTracker,

§

fn get() -> FixedU128

§

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

§

fn get() -> T

§

impl<T, O> Get<u32> for IntoU32<T, O>
where T: Get<O>, O: Into<u32>,

§

fn get() -> u32

§

impl<T, P> Get<(u32, u32)> for ActiveConfigHrmpChannelSizeAndCapacityRatio<T, P>
where T: Config, P: Get<Percent>,

§

fn get() -> (u32, u32)

§

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

§

fn get() -> u32

§

impl<_I> Get<_I> for BondingDuration
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for LockedAssets
where _I: From<Vec<(Location, Asset)>>,

§

fn get() -> _I

§

impl<_I> Get<_I> for MaxAssetsIntoHolding
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for SessionsPerEra
where _I: From<u32>,

§

fn get() -> _I

§

impl<_I> Get<_I> for SubscriptionRequests
where _I: From<Vec<(Location, Option<(u64, Weight)>)>>,

§

fn get() -> _I

§

impl<_I> Get<_I> for TrappedAssets
where _I: From<Vec<(Location, Assets)>>,

§

fn get() -> _I

Implementors§

§

impl Get<u32> for HintNumVariants

§

impl<I> Get<I> for MaxAssetTransferFilters
where I: From<u32>,

§

impl<Inner, I, R> Get<R> for GetInto<Inner, I>
where Inner: Get<I>, I: Into<R>,

§

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

Source§

impl<T: Config> Get<Id> for Pallet<T>

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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>