CustomValueTypeInfo

Trait CustomValueTypeInfo 

Source
pub trait CustomValueTypeInfo {
    type TypeId: Clone;

    // Required methods
    fn custom_value_info(
        &self,
        name: &str,
    ) -> Result<CustomValueInfo<'_, Self::TypeId>, CustomValueInfoError>;
    fn custom_values(&self) -> impl Iterator<Item = CustomValue<'_>>;
}
Expand description

This can be implemented for anything capable of providing Custom Value information.

Required Associated Types§

Source

type TypeId: Clone

The type of type IDs that we are using to obtain type information.

Required Methods§

Source

fn custom_value_info( &self, name: &str, ) -> Result<CustomValueInfo<'_, Self::TypeId>, CustomValueInfoError>

Get information about a constant

Source

fn custom_values(&self) -> impl Iterator<Item = CustomValue<'_>>

Iterate over all of the available Custom Values.

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 CustomValueTypeInfo for RuntimeMetadataV15

Source§

impl CustomValueTypeInfo for RuntimeMetadataV16

Implementors§