Skip to main content

IntoParamValue

Trait IntoParamValue 

Source
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§

Source

fn into_param_value(self) -> ParamValue

Convert this value into a ParamValue

Source

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.

Implementations on Foreign Types§

Source§

impl IntoParamValue for bool

Source§

impl IntoParamValue for f32

Source§

impl IntoParamValue for i32

Source§

impl IntoParamValue for String

Implementors§