pub trait SupportedParameterType<T> {
// Required methods
fn get_hyperlight_type() -> ParameterType;
fn get_hyperlight_value(&self) -> ParameterValue;
fn get_inner(a: ParameterValue) -> Result<T>;
}
Expand description
This is a marker trait that is used to indicate that a type is a valid Hyperlight parameter type.
For each parameter type Hyperlight supports in host functions, we
provide an implementation for SupportedParameterType<SupportedType>
Required Methods§
Sourcefn get_hyperlight_type() -> ParameterType
fn get_hyperlight_type() -> ParameterType
Get the underlying Hyperlight parameter type representing this
SupportedParameterType
Sourcefn get_hyperlight_value(&self) -> ParameterValue
fn get_hyperlight_value(&self) -> ParameterValue
Get the underling Hyperlight parameter value representing this
SupportedParameterType
Sourcefn get_inner(a: ParameterValue) -> Result<T>
fn get_inner(a: ParameterValue) -> Result<T>
Get the actual inner value of this SupportedParameterType
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.