GoodOrmningCustomF32

Trait GoodOrmningCustomF32 

Source
pub trait GoodOrmningCustomF32<T> {
    // Required methods
    fn to_sql(value: &T) -> f32;
    fn from_sql(value: f32) -> Result<T, String>;
}

Required Methods§

Source

fn to_sql(value: &T) -> f32

Source

fn from_sql(value: f32) -> Result<T, String>

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.

Implementors§