ConstantEntryInfo

Trait ConstantEntryInfo 

Source
pub trait ConstantEntryInfo {
    // Required method
    fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>;

    // Provided methods
    fn constant_tuples(
        &self,
    ) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)> { ... }
    fn constants_in_pallet(
        &self,
        pallet: &str,
    ) -> impl Iterator<Item = Cow<'_, str>> { ... }
}
Expand description

This can be implemented for anything capable of providing information about the available Constants

Required Methods§

Source

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Iterate over all of the available Constants, returning Entry as we go.

Provided Methods§

Source

fn constant_tuples(&self) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)>

Iterate over all of the available Constants, returning a pair of (pallet_name, constant_name) as we go.

Source

fn constants_in_pallet( &self, pallet: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Iterate over all of the available constants in a given pallet.

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 ConstantEntryInfo for RuntimeMetadataV8

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV9

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV10

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV11

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV12

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV13

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV14

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV15

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Source§

impl ConstantEntryInfo for RuntimeMetadataV16

Source§

fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>

Source§

fn constants_in_pallet( &self, pallet_name: &str, ) -> impl Iterator<Item = Cow<'_, str>>

Implementors§