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§
Sourcefn view_function_entries(&self) -> impl Iterator<Item = ViewFunctionEntry<'_>>
fn view_function_entries(&self) -> impl Iterator<Item = ViewFunctionEntry<'_>>
Iterate over all of the available View Functions, returning Entry as we go.
Provided Methods§
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.