pub trait IntoParamValue: Sized {
// Required methods
fn into_param_value(self) -> ParamValue;
fn from_param_value(value: ParamValue) -> Option<Self>;
}Expand description
Trait for types that can be converted to/from ParamValue
Required Methods§
Sourcefn into_param_value(self) -> ParamValue
fn into_param_value(self) -> ParamValue
Convert this value into a ParamValue
Sourcefn from_param_value(value: ParamValue) -> Option<Self>
fn from_param_value(value: ParamValue) -> Option<Self>
Try to convert a ParamValue back into this type
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.