pub trait ParameterTuple:
Sized
+ Clone
+ Send
+ Sync
+ 'static {
const SIZE: usize;
const TYPE: &[ParameterType];
// Required methods
fn into_value(self) -> Vec<ParameterValue>;
fn from_value(value: Vec<ParameterValue>) -> Result<Self>;
}
Expand description
A trait to describe the tuple of parameters that a host function can take.
Required Associated Constants§
Sourceconst TYPE: &[ParameterType]
const TYPE: &[ParameterType]
The underlying Hyperlight parameter types representing this tuple of SupportedParameterType
Required Methods§
Sourcefn into_value(self) -> Vec<ParameterValue>
fn into_value(self) -> Vec<ParameterValue>
Get the underling Hyperlight parameter value representing this
SupportedParameterType
Sourcefn from_value(value: Vec<ParameterValue>) -> Result<Self>
fn from_value(value: Vec<ParameterValue>) -> Result<Self>
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.