ViewFunctionEntryInfo

Trait ViewFunctionEntryInfo 

Source
pub trait ViewFunctionEntryInfo {
    // Required method
    fn view_function_entries(
        &self,
    ) -> impl Iterator<Item = ViewFunctionEntry<'_>>;

    // Provided methods
    fn view_function_tuples(
        &self,
    ) -> impl Iterator<Item = (Cow<'_, str>, Cow<'_, str>)> { ... }
    fn view_functions_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 View Functions

Required Methods§

Source

fn view_function_entries(&self) -> impl Iterator<Item = ViewFunctionEntry<'_>>

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

Provided Methods§

Source

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

Iterate over all of the available View Functions, returning a pair of (pallet_name, view_function_name) as we go.

Source

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

Iterate over all of the available View Functions 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 ViewFunctionEntryInfo for RuntimeMetadataV16

Source§

fn view_function_entries(&self) -> impl Iterator<Item = ViewFunctionEntry<'_>>

Source§

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

Implementors§