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§
Required Methods§
Sourcefn custom_value_info(
&self,
name: &str,
) -> Result<CustomValueInfo<'_, Self::TypeId>, CustomValueInfoError>
fn custom_value_info( &self, name: &str, ) -> Result<CustomValueInfo<'_, Self::TypeId>, CustomValueInfoError>
Get information about a constant
Sourcefn custom_values(&self) -> impl Iterator<Item = CustomValue<'_>>
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.