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§
Sourcefn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>
fn constant_entries(&self) -> impl Iterator<Item = ConstantEntry<'_>>
Iterate over all of the available Constants, 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.